Re: RFC: Adding an option to log-like commands to call an external command for each revision
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Aug 29, 2010, 20:39 UTC
- Message-ID
- <20100829203905.GA1890@burratino>
- In-Reply-To
- <AANLkTikh-KoWuPYE12pVszwduGTBOssKDxqk=4iF6QZT@mail.gmail.com>
Hi Ævar,
Ævar Arnfjörð Bjarmason wrote:
Show 8 quoted lines
> I have this alias in my .gitconfig:
>
> review = "!f() { for rev in $(git rev-list --reverse \"$@\"); do
> git show $rev; done; }; f"
>
> I use it after I "git pull" to see what changed, e.g.:
>
> git review 49ea7b8..e1ef3c1Hmm,
git show --reverse 49ea7b8..e1ef3c1
doesn't work because cmd_show() bypasses the get_revision() magic. :(