quizzes/git: Add 'git status' question
authorW. Trevor King <wking@tremily.us>
Wed, 6 Feb 2013 21:54:36 +0000 (16:54 -0500)
committerW. Trevor King <wking@tremily.us>
Wed, 6 Feb 2013 21:54:36 +0000 (16:54 -0500)
quizzes/git.json

index d8647c66899fc625d12e39f1e374da9420e0f7ee..17f25e728604deb7a4d8b375f3695676db2c1649 100644 (file)
                                "commit"
                                ]
                },
+               {
+                       "class": "ScriptQuestion",
+                       "interpreter": "sh",
+                       "id": "git status",
+                       "prompt": [
+                               "You don't remember if you've staged README to be committed.",
+                               "How would you check?"
+                               ],
+                       "answer": "git status",
+                       "setup": [
+                               "git init",
+                               "echo 'This project is wonderful' > README",
+                               "git add README"
+                               ],
+                       "help": "http://www.kernel.org/pub/software/scm/git/docs/git-status.html",
+                       "tags": [
+                               "add",
+                               "query"
+                               ]
+               },
                {
                        "class": "ScriptQuestion",
                        "interpreter": "sh",