git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Showing the version of a file that's in the Index.
@ 2009-04-07 19:59 Tim Visher
  2009-04-07 20:10 ` Markus Heidelberg
  0 siblings, 1 reply; 7+ messages in thread
From: Tim Visher @ 2009-04-07 19:59 UTC (permalink / raw)
  To: Git Mailing List

Hello Everyone,

How do you go about showing the version of the file that's in an
index.  I'm currently going through a somewhat convoluted in-file
add/commit process and I'd like to verify that what I'm about to
commit is in fact the version that I want to commit.

Thanks in advance!

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Showing the version of a file that's in the Index.
  2009-04-07 19:59 Showing the version of a file that's in the Index Tim Visher
@ 2009-04-07 20:10 ` Markus Heidelberg
  2009-04-07 20:14   ` Teemu Likonen
  0 siblings, 1 reply; 7+ messages in thread
From: Markus Heidelberg @ 2009-04-07 20:10 UTC (permalink / raw)
  To: Tim Visher; +Cc: Git Mailing List

Tim Visher, 07.04.2009:
> How do you go about showing the version of the file that's in an
> index.

With version do you mean content? Then

    git cat-file -p :0:file
or
    git cat-file -p :file

See git-rev-parse(1) "Specifying revisions", the last item.

Markus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Showing the version of a file that's in the Index.
  2009-04-07 20:10 ` Markus Heidelberg
@ 2009-04-07 20:14   ` Teemu Likonen
  2009-04-07 20:15     ` Tim Visher
  2009-04-07 21:57     ` Markus Heidelberg
  0 siblings, 2 replies; 7+ messages in thread
From: Teemu Likonen @ 2009-04-07 20:14 UTC (permalink / raw)
  To: markus.heidelberg; +Cc: Tim Visher, Git Mailing List

On 2009-04-07 22:10 (+0200), Markus Heidelberg wrote:

> Tim Visher, 07.04.2009:
>> How do you go about showing the version of the file that's in an
>> index.
>
> With version do you mean content? Then
>
>     git cat-file -p :0:file
> or
>     git cat-file -p :file

Or

    git show :file

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Showing the version of a file that's in the Index.
  2009-04-07 20:14   ` Teemu Likonen
@ 2009-04-07 20:15     ` Tim Visher
  2009-04-07 21:57     ` Markus Heidelberg
  1 sibling, 0 replies; 7+ messages in thread
From: Tim Visher @ 2009-04-07 20:15 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: markus.heidelberg, Git Mailing List

On Tue, Apr 7, 2009 at 4:14 PM, Teemu Likonen <tlikonen@iki.fi> wrote:
> On 2009-04-07 22:10 (+0200), Markus Heidelberg wrote:
>
>> Tim Visher, 07.04.2009:
>>> How do you go about showing the version of the file that's in an
>>> index.
>>
>> With version do you mean content? Then
>>
>>     git cat-file -p :0:file
>> or
>>     git cat-file -p :file
>
> Or
>
>    git show :file
>

Nice.  Thank you!

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Showing the version of a file that's in the Index.
  2009-04-07 20:14   ` Teemu Likonen
  2009-04-07 20:15     ` Tim Visher
@ 2009-04-07 21:57     ` Markus Heidelberg
  2009-04-08  5:00       ` Teemu Likonen
  1 sibling, 1 reply; 7+ messages in thread
From: Markus Heidelberg @ 2009-04-07 21:57 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: Tim Visher, Git Mailing List

Teemu Likonen, 07.04.2009:
> Or
> 
>     git show :file

Huh, I use git-show daily for commits, but I completely forgot about it
for files when replying. I already felt strange about having to pass an
option.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Showing the version of a file that's in the Index.
  2009-04-07 21:57     ` Markus Heidelberg
@ 2009-04-08  5:00       ` Teemu Likonen
  2009-04-08 11:04         ` Johannes Schindelin
  0 siblings, 1 reply; 7+ messages in thread
From: Teemu Likonen @ 2009-04-08  5:00 UTC (permalink / raw)
  To: markus.heidelberg; +Cc: Tim Visher, Git Mailing List

On 2009-04-07 23:57 (+0200), Markus Heidelberg wrote:

> Teemu Likonen, 07.04.2009:
>> Or
>> 
>>     git show :file
>
> Huh, I use git-show daily for commits, but I completely forgot about it
> for files when replying.

It's nice for trees too:

    git show HEAD~3:
    git show master~1:directory/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Showing the version of a file that's in the Index.
  2009-04-08  5:00       ` Teemu Likonen
@ 2009-04-08 11:04         ` Johannes Schindelin
  0 siblings, 0 replies; 7+ messages in thread
From: Johannes Schindelin @ 2009-04-08 11:04 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: markus.heidelberg, Tim Visher, Git Mailing List

Hi,

On Wed, 8 Apr 2009, Teemu Likonen wrote:

> On 2009-04-07 23:57 (+0200), Markus Heidelberg wrote:
> 
> > Teemu Likonen, 07.04.2009:
> >> Or
> >> 
> >>     git show :file
> >
> > Huh, I use git-show daily for commits, but I completely forgot about it
> > for files when replying.
> 
> It's nice for trees too:
> 
>     git show HEAD~3:
>     git show master~1:directory/

But that's not in the index, and my patch to show cache-trees was 
rejected.

Ciao,
Dscho

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-04-08 11:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-07 19:59 Showing the version of a file that's in the Index Tim Visher
2009-04-07 20:10 ` Markus Heidelberg
2009-04-07 20:14   ` Teemu Likonen
2009-04-07 20:15     ` Tim Visher
2009-04-07 21:57     ` Markus Heidelberg
2009-04-08  5:00       ` Teemu Likonen
2009-04-08 11:04         ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).