# List of files aded/removed/modified by "git-checkout"

4 messages from 2008-02-06 to 2008-02-07. Participants: Stefan Monnier, Junio C Hamano, Johannes Schindelin.
Thread: https://gitlist.dev/t/11928

## Stefan Monnier, 2008-02-06 21:47

Subject: List of files aded/removed/modified by "git-checkout"
Message-ID: <jwvodatkbdm.fsf-monnier+gmane.comp.version-control.git@gnu.org>
URL: https://gitlist.dev/e/jwvodatkbdm.fsf-monnier%2Bgmane.comp.version-control.git%40gnu.org

```
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

```

## Junio C Hamano, 2008-02-07 03:51

Subject: Re: List of files aded/removed/modified by "git-checkout"
Message-ID: <7vve51qva3.fsf@gitster.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vve51qva3.fsf%40gitster.siamese.dyndns.org
In-Reply-To: <jwvodatkbdm.fsf-monnier+gmane.comp.version-control.git@gnu.org>

```
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

```

## Stefan Monnier, 2008-02-07 13:41

Subject: Re: List of files aded/removed/modified by "git-checkout"
Message-ID: <jwvfxw4ga0s.fsf-monnier+inbox@gnu.org>
URL: https://gitlist.dev/e/jwvfxw4ga0s.fsf-monnier%2Binbox%40gnu.org
In-Reply-To: <7vve51qva3.fsf@gitster.siamese.dyndns.org>

```
>> 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

```

## Johannes Schindelin, 2008-02-07 16:11

Subject: Re: List of files aded/removed/modified by "git-checkout"
Message-ID: <alpine.LSU.1.00.0802071610370.8543@racer.site>
URL: https://gitlist.dev/e/alpine.LSU.1.00.0802071610370.8543%40racer.site
In-Reply-To: <jwvfxw4ga0s.fsf-monnier+inbox@gnu.org>

```
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

```
