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

index 3a6d3d5fad8cbf72dbdd5014a1b7d0226c88a88b..d8647c66899fc625d12e39f1e374da9420e0f7ee 100644 (file)
                                "commit",
                                "rewrite"
                                ]
+               },
+               {
+                       "class": "ScriptQuestion",
+                       "interpreter": "sh",
+                       "id": "gitignore",
+                       "prompt": "Tell git to ignore files ending with `~`.",
+                       "answer": "echo '*~' > .gitignore",
+                       "setup": [
+                                       "git init"
+                                       ],
+                       "teardown": [
+                               "touch some-file~",
+                               "git status | grep some-file"
+                               ],
+                       "help": "http://www.kernel.org/pub/software/scm/git/docs/gitignore.html",
+                       "tags": [
+                               "config"
+                               ]
                }
        ]
 }