Re: What I miss from Cogito...

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Theodore Tso
Date: Sunday, March 23, 2008 - 10:38 am

On Sun, Mar 23, 2008 at 10:15:48AM -0700, H. Peter Anvin wrote:

I didn't think "git reset --hard -- <pathame>" was valid, since it's
not documented in the man page.

I have the following in my path as "git-revert-file" (which is easier
to type and less dangerous than typing "git reset --hard -- <path>"):

#!/bin/sh
#
prefix=$(git rev-parse --show-prefix)

for i in $*
do
        git show HEAD:$prefix$i > $i
done


							- Ted
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
What I miss from Cogito..., H. Peter Anvin, (Sun Mar 23, 10:15 am)
Re: What I miss from Cogito..., Theodore Tso, (Sun Mar 23, 10:38 am)
Re: What I miss from Cogito..., H. Peter Anvin, (Sun Mar 23, 10:46 am)
Re: What I miss from Cogito..., Luciano Rocha, (Sun Mar 23, 11:21 am)
Re: What I miss from Cogito..., Johannes Schindelin, (Sun Mar 23, 11:31 am)
Re: What I miss from Cogito..., Junio C Hamano, (Sun Mar 23, 11:34 am)
Re: What I miss from Cogito..., H. Peter Anvin, (Sun Mar 23, 11:58 am)
Re: What I miss from Cogito..., Junio C Hamano, (Sun Mar 23, 11:59 am)
Re: What I miss from Cogito..., Mike Hommey, (Sun Mar 23, 12:00 pm)
Re: What I miss from Cogito..., Bruce Stephens, (Sun Mar 23, 12:07 pm)
Re: What I miss from Cogito..., Mike Hommey, (Sun Mar 23, 12:07 pm)
Re: What I miss from Cogito..., Florian Weimer, (Sun Mar 23, 12:14 pm)
Re: What I miss from Cogito..., Daniel Barkalow, (Sun Mar 23, 12:16 pm)
Re: What I miss from Cogito..., H. Peter Anvin, (Sun Mar 23, 12:19 pm)
Re: What I miss from Cogito..., Theodore Tso, (Sun Mar 23, 5:16 pm)
Re: What I miss from Cogito..., Björn, (Sun Mar 23, 6:40 pm)
Re: What I miss from Cogito..., Theodore Tso, (Sun Mar 23, 7:14 pm)
Re: What I miss from Cogito..., Junio C Hamano, (Sun Mar 23, 7:53 pm)
Re: What I miss from Cogito..., Björn, (Sun Mar 23, 7:57 pm)
Re: What I miss from Cogito..., Petr Baudis, (Wed Mar 26, 7:36 pm)