]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
delete_ref(): delete packed ref
authorJunio C Hamano <junkio@cox.net>
Sat, 30 Sep 2006 22:02:00 +0000 (15:02 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 30 Sep 2006 22:20:44 +0000 (15:20 -0700)
commitc0277d15effb9efcaaaa0cd84decf71a327ac07b
treeebac14633dc875be278744d442e8027713b30fa1
parent22a3844ebada55c207e2b85fb68509a7c9e2b5f0
delete_ref(): delete packed ref

This implements deletion of a packed ref.  Since it is a very
rare event to delete a ref compared to looking up, creating and
updating, this opts to remove the ref from the packed-ref file
instead of doing any of the filesystem based "negative ref" trick
to optimize the deletion path.

Signed-off-by: Junio C Hamano <junkio@cox.net>
refs.c