[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+55aFyhYDOt49v7kn3nKqr3gNt9+ZcCdT6qa3OZjiL+OLPjpw@mail.gmail.com>
Date: Tue, 22 Nov 2011 13:24:46 -0800
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: Re: [git pull] vfs fix
On Tue, Nov 22, 2011 at 1:09 PM, Al Viro <viro@...iv.linux.org.uk> wrote:
>
> FWIW, the fixed form of script follows; if you see any potential problems in
> it, please tell:
So not problems per se, just not very pretty.
> echo Shortlog:
> base=`git merge-base origin "$1"`
> git log --pretty=short "$base..$1" | git shortlog
> echo Diffstat:
> git diff --stat -M "$base..$1"
I would suggest this instead:
echo Shortlog:
git shortlog "origin..$1"
echo Diffstat:
git diff --stat --summary -M "origin...$1"
and skip all the merge-base crap (git will do it for you: with a "git
log" you don't need it, and with a "git diff" the three-dot version
will do it for you). And just use "git shortlog" directly.
And the above also uses "--summary" for the "git diff" to show a
summary of renames/deletes.
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists