git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Showing the version of a file that's in the Index.

From
Tim Visher <tim.visher@gmail.com>
Date
Apr 7, 2009, 20:15 UTC
Message-ID
<c115fd3c0904071315s6cb8812ajcdc98357f9750716@mail.gmail.com>
In-Reply-To
<874ox0w7ak.fsf@iki.fi>
On Tue, Apr 7, 2009 at 4:14 PM, Teemu Likonen <tlikonen@iki.fi> wrote:
Show 16 quoted lines
> 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
Previous: Teemu LikonenNext: Markus Heidelberg
Message 4 of 7 in “Showing the version of a file that's in the Index.”
  1. Tim VisherApr 7, 2009
  2. Markus HeidelbergApr 7, 2009
  3. Teemu LikonenApr 7, 2009
  4. Tim VisherApr 7, 2009
  5. Markus HeidelbergApr 7, 2009
  6. Teemu LikonenApr 8, 2009
  7. Johannes SchindelinApr 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.