git-diff: add example using relative time range (#1619)

coverage
Starbeamrainbowlabs 2017-11-03 23:06:20 +00:00 committed by GitHub
commit 14279f02e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,10 @@
`git diff --staged` `git diff --staged`
- Show changes from all commits since a given date/time (a date expression, e.g. "1 week 2 days" or an ISO date):
`git diff 'HEAD@{3 months|weeks|days|hours|seconds ago}'`
- Show only names of changed files since a given commit: - Show only names of changed files since a given commit:
`git diff --name-only {{commit}}` `git diff --name-only {{commit}}`