2018-12-19 14:09:39 +08:00

15 lines
430 B
Plaintext

$ git add file.txt
foo@foobar ~ $ git diff --cached
$ git log -p -i
----------------------------------------------------
[
["command", ["$ git add file.txt"]],
["command", ["foo@foobar ~ $ git diff", ["parameter", " --cached"]]],
["command", ["$ git log", ["parameter", " -p"], ["parameter", " -i"]]]
]
----------------------------------------------------
Checks for git commands, with and without parameters.