[PATCH] Fix "git-rev-list" revision range parsing
authorLinus Torvalds <torvalds@osdl.org>
Sat, 17 Sep 2005 00:53:19 +0000 (17:53 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 17 Sep 2005 18:57:50 +0000 (11:57 -0700)
commit2a7055ae982fd66b078ac84cbb2b1f9408b67295
tree3434a957859f191824b4adbad7641f89f0c97f74
parenta09af243fbffeb5ddc5dbc94a4bdf9201c346030
[PATCH] Fix "git-rev-list" revision range parsing

There were two bugs in there:
 - if the range didn't end up working, we restored the '.' character in
   the wrong place.
 - an empty end-of-range should be interpreted as HEAD.

See rev-parse.c for the reference implementation of this.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
rev-list.c