Re: Is there a --stat or --numstat like option that'll allow me to have my cake and eat it too?

2016-03-08 Thread Ævar Arnfjörð Bjarmason
On Tue, Mar 8, 2016 at 9:51 PM, Jeff King wrote: > On Tue, Mar 08, 2016 at 04:08:21PM +0100, Ævar Arnfjörð Bjarmason wrote: > >> What I really want is something for git-log more like >> git-for-each-ref, so I could emit the following info for each file >> being modified delimited

Re: Is there a --stat or --numstat like option that'll allow me to have my cake and eat it too?

2016-03-08 Thread Jeff King
On Tue, Mar 08, 2016 at 04:08:21PM +0100, Ævar Arnfjörð Bjarmason wrote: > What I really want is something for git-log more like > git-for-each-ref, so I could emit the following info for each file > being modified delimited by some binary marker: > > - file name before > - file name

Re: Is there a --stat or --numstat like option that'll allow me to have my cake and eat it too?

2016-03-08 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > What I really want is something for git-log more like > git-for-each-ref, so I could emit the following info for each file > being modified delimited by some binary marker: > > - file name before > - file name after > - is rename? >

Is there a --stat or --numstat like option that'll allow me to have my cake and eat it too?

2016-03-08 Thread Ævar Arnfjörð Bjarmason
I maintain a hook for Git that allows you to block binary pushes[1], from other implementations I've seen it's the least stupid thing out there that does that. Basically on-push it parses this: git log --pretty=format:%H -M100% --stat=9000,9001 .. The --stat=9000,9001 is there to make sure