]> git.ipfire.org Git - thirdparty/git.git/commit - object-name.c
sha1_name: refactor reinterpret()
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 7 May 2013 22:04:30 +0000 (17:04 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 May 2013 19:13:12 +0000 (12:13 -0700)
commit7a0a49a7ca787433255280b66e7652b56f7beb6e
tree46573322a5d99e78ed729b843134edd8059fc169
parent83d16bc7bec92ea3f705f559c5a13589cb7c1f92
sha1_name: refactor reinterpret()

This code essentially replaces part of ref with another ref, for example
'@{-1}@{u}' is replaced with 'master@{u}', but this can be reused for
other purposes other than nth prior checkouts.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_name.c