git/builtin
Nguyễn Thái Ngọc Duy baf18fc261 Accept tags in HEAD or MERGE_HEAD
HEAD and MERGE_HEAD (among other branch tips) should never hold a
tag. That can only be caused by broken tools and is cumbersome to fix
by an end user with:

  $ git update-ref HEAD $(git rev-parse HEAD^{commit})

which may look like a magic to a new person.

Be easy, warn users (so broken tools can be fixed if they bother to
report) and move on.

Be robust, if the given SHA-1 cannot be resolved to a commit object,
die (therefore return value is always valid).

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-09-18 14:11:40 -07:00
..
2011-03-09 23:52:57 -08:00
2011-05-31 12:19:11 -07:00
2011-03-09 23:52:57 -08:00
2011-06-20 14:27:36 -07:00
2011-05-31 12:19:11 -07:00
2010-10-21 17:16:10 -07:00
2011-09-18 14:11:40 -07:00
2011-06-20 14:27:36 -07:00
2011-06-08 17:21:08 -07:00
2011-03-22 11:43:27 -07:00
2011-05-30 00:00:07 -07:00
2011-05-31 12:19:11 -07:00
2010-11-24 15:55:19 -08:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-09-18 14:11:40 -07:00
2011-03-09 23:52:56 -08:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-04-01 17:55:55 -07:00
2011-03-22 11:43:27 -07:00
2011-03-22 10:16:54 -07:00
2011-04-01 17:55:55 -07:00
2011-05-31 12:19:11 -07:00
2011-05-19 10:55:54 -07:00
2011-05-16 13:01:45 -07:00
2011-03-09 23:52:56 -08:00
2011-05-31 12:19:11 -07:00
2011-05-10 08:45:37 -07:00
2011-03-22 10:16:54 -07:00
2010-11-15 10:04:43 -08:00
2011-03-22 10:16:54 -07:00