From ba5cd1c4f1dc3a274462bf6cfe9195617cd7461b Mon Sep 17 00:00:00 2001 From: Ali Servet Donmez Date: Tue, 7 Jun 2016 09:42:13 +0200 Subject: [PATCH 1/2] Use log instead of whatchanged As per documentation (https://git-scm.com/docs/git-whatchanged): "New users are encouraged to use git-log(1) instead. The whatchanged command is essentially the same as git-log(1) but defaults to show the raw format diff output and to skip merges. The command is kept primarily for historical reasons; fingers of many people who learned Git long before git log was invented by reading Linux kernel mailing list are trained to type it." --- tips.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tips.json b/tips.json index dfffb7a..d3cad05 100644 --- a/tips.json +++ b/tips.json @@ -89,7 +89,8 @@ "tip": "curl http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completion.bash ] && . ~/.git-completion.bash' >> ~/.bashrc" }, { "title": "What changed since two weeks?", - "tip": "git whatchanged --since='2 weeks ago'" + "tip": "git log --no-merges --raw --since='2 weeks ago'", + "alternatives": ["git whatchanged --since='2 weeks ago'"] }, { "title": "See all commits made since forking from master", "tip": "git log --no-merges --stat --reverse master.." From f9772a90df5f64f1331c6211a5779e3a9773821c Mon Sep 17 00:00:00 2001 From: Ali Servet Donmez Date: Wed, 8 Jun 2016 22:51:47 +0200 Subject: [PATCH 2/2] Update README and TOC ... by `npm run-script generate` --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 2af0e2d..6b466bb 100644 --- a/README.md +++ b/README.md @@ -271,6 +271,12 @@ curl http://git.io/vfhol > ~/.git-completion.bash && echo '[ -f ~/.git-completio ## What changed since two weeks? ```sh +git log --no-merges --raw --since='2 weeks ago' +``` + + +__Alternatives:__ +```sh git whatchanged --since='2 weeks ago' ```