[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: git committish for 1 year ago
From: |
David Kastrup |
Subject: |
Re: git committish for 1 year ago |
Date: |
Thu, 08 Dec 2011 12:25:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
David Kastrup <address@hidden> writes:
> Graham Percival <address@hidden> writes:
>
>> On Thu, Dec 08, 2011 at 12:08:30PM +0100, David Kastrup wrote:
>>> Graham Percival <address@hidden> writes:
>>>
>>> > ~/src/lilypond$ git rev-parse "origin/address@hidden months ago}"
>>> > 95fab3ca9692b197c2a26c5249d7f30b114ab451
>>> >
>>>
>>> Uh, @ specifications are for the _reflog_. That is something maintained
>>> strictly locally, for fixing things when you messed up the branch heads
>>> beyond repair.
>>
>> huh. The impression I got from here
>> http://stackoverflow.com/questions/949314/how-to-retrieve-the-hash-for-the-current-commit-in-git
>> was that git rev-parse got me the abcd1234 hash.
>>
>>> git log "--since=1 year ago" "--until=9 months ago"
>>
>> all I want is the commit hash, though.
>
> git rev-parse origin -1 --until="1 year ago"
Huh? I did not actually press send on that, did I?
git rev-list -1 --until="1 year ago" origin
Sorry.
--
David Kastrup