All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: git@vger.kernel.org
Subject: Re: List of files aded/removed/modified by "git-checkout"
Date: Wed, 06 Feb 2008 19:51:00 -0800	[thread overview]
Message-ID: <7vve51qva3.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <jwvodatkbdm.fsf-monnier+gmane.comp.version-control.git@gnu.org> (Stefan Monnier's message of "Wed, 06 Feb 2008 16:47:19 -0500")

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

  reply	other threads:[~2008-02-07  3:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-06 21:47 List of files aded/removed/modified by "git-checkout" Stefan Monnier
2008-02-07  3:51 ` Junio C Hamano [this message]
2008-02-07 13:41   ` Stefan Monnier
2008-02-07 16:11     ` Johannes Schindelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vve51qva3.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.