Convert update-ref to use ref_lock API.
This conversion also adds the '-m' switch to update-ref allowing the caller to record why the ref is changing. At present this is merely copied down into the ref_lock API. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
4bd18c43d9
commit
5b16b09021
@ -7,7 +7,7 @@ git-update-ref - update the object name stored in a ref safely
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
'git-update-ref' <ref> <newvalue> [<oldvalue>]
|
||||
'git-update-ref' <ref> <newvalue> [<oldvalue>] [-m <reason>]
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
|
Reference in New Issue
Block a user