Sfoglia il codice sorgente

Expand git-diff page

Added:
  * `—names-only` option.
  * `—summary` option.
Mateu Aguiló Bosch 11 anni fa
parent
commit
013116469e
1 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  1. 9 1
      pages/common/git-diff.md

+ 9 - 1
pages/common/git-diff.md

@@ -4,4 +4,12 @@
 
 - Show changes to tracked files
 
-`git diff {{PATHSPEC}}`
+`git diff {{PATHSPEC}}`
+
+- Show only names of changed files.
+
+`git diff --names-only {{PATHSPEC}}`
+
+- Output a condensed summary of extended header information.
+
+`git diff --summary {{PATHSPEC}}`