git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* List of files aded/removed/modified by "git-checkout"
@ 2008-02-06 21:47 Stefan Monnier
  2008-02-07  3:51 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2008-02-06 21:47 UTC (permalink / raw)
  To: git

Whenever I do a git-checkout to switch between branches, I'm
disappointed by the absence of a "-v" option which would list the
operations performed.

How can I get this information?


        Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: List of files aded/removed/modified by "git-checkout"
  2008-02-06 21:47 List of files aded/removed/modified by "git-checkout" Stefan Monnier
@ 2008-02-07  3:51 ` Junio C Hamano
  2008-02-07 13:41   ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2008-02-07  3:51 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: git

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Whenever I do a git-checkout to switch between branches, I'm
> disappointed by the absence of a "-v" option which would list the
> operations performed.
>
> How can I get this information?

I'd be mightily annoyed with it myself, though, as I switch
between 'master', 'next', 'pu' and 'maint' pretty often.

Have something like this in .git/hooks/post-checkout and make it
executable, perhaps?  Modify the options to suit your taste.

#!/bin/sh
case "$3" in
1)
	git diff --stat --summary -M "$1" "$2" ;;
esac

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: List of files aded/removed/modified by "git-checkout"
  2008-02-07  3:51 ` Junio C Hamano
@ 2008-02-07 13:41   ` Stefan Monnier
  2008-02-07 16:11     ` Johannes Schindelin
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2008-02-07 13:41 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

>> Whenever I do a git-checkout to switch between branches, I'm
>> disappointed by the absence of a "-v" option which would list the
>> operations performed.
>> 
>> How can I get this information?

> I'd be mightily annoyed with it myself, though, as I switch
> between 'master', 'next', 'pu' and 'maint' pretty often.

Why would such a "-v" option bother you?  Nobody forces you to use it.

> Have something like this in .git/hooks/post-checkout and make it
> executable, perhaps?  Modify the options to suit your taste.

That doesn't really cut it: I'd like to use it in a git frontend.


        Stefan

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: List of files aded/removed/modified by "git-checkout"
  2008-02-07 13:41   ` Stefan Monnier
@ 2008-02-07 16:11     ` Johannes Schindelin
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Schindelin @ 2008-02-07 16:11 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Junio C Hamano, git

Hi,

On Thu, 7 Feb 2008, Stefan Monnier wrote:

> >> Whenever I do a git-checkout to switch between branches, I'm 
> >> disappointed by the absence of a "-v" option which would list the 
> >> operations performed.
> >> 
> >> How can I get this information?
> 
> > I'd be mightily annoyed with it myself, though, as I switch between 
> > 'master', 'next', 'pu' and 'maint' pretty often.
> 
> Why would such a "-v" option bother you?  Nobody forces you to use it.

I agree.

> > Have something like this in .git/hooks/post-checkout and make it 
> > executable, perhaps?  Modify the options to suit your taste.
> 
> That doesn't really cut it: I'd like to use it in a git frontend.

Well, this request does not really cut it: it lacks a patch.  And yes, you 
have been given enough information to hack it yourself.  No, I will not do 
something about it; this is not my itch.

Hth,
Dscho

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-07 16:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-06 21:47 List of files aded/removed/modified by "git-checkout" Stefan Monnier
2008-02-07  3:51 ` Junio C Hamano
2008-02-07 13:41   ` Stefan Monnier
2008-02-07 16:11     ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).