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
threads / discuss / 11928
Subject: List of files aded/removed/modified by "git-checkout"
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
Re: List of files aded/removed/modified by "git-checkout"
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
Re: List of files aded/removed/modified by "git-checkout"
>> 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
Re: List of files aded/removed/modified by "git-checkout"
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