aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-04-05 22:41:53 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-04-05 22:41:53 +0200
commitfa5987dca9089d3698c5246ae7827c9c3b204436 (patch)
tree253ffcc87438f6f7c3c12702345ec42d642d3d49 /src
parent98c909eb6a4c93551f6cbf49c360e8a38a271a6a (diff)
downloadnotes-fa5987dca9089d3698c5246ae7827c9c3b204436.tar.gz
notes-fa5987dca9089d3698c5246ae7827c9c3b204436.zip
git: add --name-only
Diffstat (limited to 'src')
-rw-r--r--src/tools/git.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/git.md b/src/tools/git.md
index 33bf858..8d5c26c 100644
--- a/src/tools/git.md
+++ b/src/tools/git.md
@@ -138,6 +138,7 @@ the same repository (shared .git folder).
git diff <commit>..<commit> [<file>] .... show changes between two arbitrary
commits. If one <commit> is omitted
it is if HEAD is specified.
+ git diff --name-only <commit>..<commit> . show names of files changed
git diff -U$(wc -l <file>) <file> ....... shows complete file with diffs
instead of usual diff snippets
git diff --staged ....................... show diffs of staged files