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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stefan Monnier <monnier@xxxxxxxxxxxxxxxx> 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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux