]> git.phdru.name Git - git-wiki.git/commitdiff
Explain tricky options (git log -p3)
authorOleg Broytman <phd@phdru.name>
Sat, 22 Aug 2015 21:01:44 +0000 (00:01 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 22 Aug 2015 21:01:44 +0000 (00:01 +0300)
pep-git.txt

index 942aa34b002272f3714527a267b9f323d376b24f..08880df1ab19290f79993c33774f683c7980266a 100644 (file)
@@ -741,9 +741,17 @@ that's not an error, just a reminder to perform regular maintenance.
 Tips and tricks
 ===============
 
-TODO: sticky options; example: git grep -O.
+Command-line options and arguments
+----------------------------------
+
+`git help cli
+<https://www.kernel.org/pub/software/scm/git/docs/gitcli.html>`_
+recommends not to combine short options/flags. Most of the times it
+works: ``git commit -av`` works perfectly, but there are situations
+when it doesn't. E.g., ``git log -p -5`` cannot be combined as ``git
+log -p5``.
 
-TODO: tricky options; example: git log -p3.
+TODO: sticky options; example: git grep -O.
 
 TODO: bash/zsh completion, bash/zsh prompt.
 https://git.kernel.org/cgit/git/git.git/tree/contrib/completion