3 ms·
You mean you didn't just read git's easy-to-follow, well-structured man pages or built-in help? /s Half the time, when I know what I want, I both keep forgetti
by e12e 9y ago
You mean you didn't just read git's easy-to-follow, well-structured man pages or built-in help? /s
Half the time, when I know what I want, I both keep forgetting git flags and sub-commands - and struggle to find them in the man pages.
Like the fine:
git diff --name-only # i list only the files that are changed. But I'm not --list-files.
- OJFord 9y agoDiff lists files without --name-only though, so the flag specifies you want _only_ the filenames of those with a diff.
- e12e 9y agoTrue, but it's inconsistent with eg grep.
- yawaramin 9y agoGetting only the changed filenames is a fairly specialised operation. Often in normal use you can get away with a more generic operation that comes close to what you need, but is way more common, e.g. git diff --stat