[PATCH v2] git-tag: Allow --points-at syntax to create a tag pointing to specified commit

2013-03-14 Thread Michal Novotny
This patch adds the option to specify SHA-1 commit hash using --points-at option of git tag to create a tag pointing to a historical commit. This was pretty easy in the past for the lightweight tags that are just simple pointers (by creating .git/refs/tags/$tagname with SHA-1 hash) but it was not

Re: [PATCH v2] git-tag: Allow --points-at syntax to create a tag pointing to specified commit

2013-03-14 Thread John Keeping
On Thu, Mar 14, 2013 at 01:34:54PM +0100, Michal Novotny wrote: This patch adds the option to specify SHA-1 commit hash using --points-at option of git tag to create a tag pointing to a historical commit. What does this do that git tag name commit doesn't? This was pretty easy in the past for

Re: [PATCH v2] git-tag: Allow --points-at syntax to create a tag pointing to specified commit

2013-03-14 Thread Michal Novotny
On 03/14/2013 02:36 PM, John Keeping wrote: On Thu, Mar 14, 2013 at 01:34:54PM +0100, Michal Novotny wrote: This patch adds the option to specify SHA-1 commit hash using --points-at option of git tag to create a tag pointing to a historical commit. What does this do that git tag name commit

Re: [PATCH v2] git-tag: Allow --points-at syntax to create a tag pointing to specified commit

2013-03-14 Thread Junio C Hamano
Michal Novotny minov...@redhat.com writes: Oh, interesting. It's working now and I didn't know that as it was not working some time ago I've been trying this approach. Maybe it's been added recently... Pretty much from the very beginning git tag name commit has been the way to create a tag,