diff options
author | David Turner <dturner@twopensource.com> | 2015-07-21 17:04:52 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-07-21 14:07:59 -0700 |
commit | abd0cd3a3018e1c4e9e4437fb3911d6658e99fec (patch) | |
tree | f6d25ec6ea6d7ee8897f0f2b45fe7cfecbd47285 /t/t5100/patch0001 | |
parent | refs: break out check for reflog autocreation (diff) | |
download | tgif-abd0cd3a3018e1c4e9e4437fb3911d6658e99fec.tar.xz |
refs: new public ref function: safe_create_reflog
The safe_create_reflog function creates a reflog, if it does not
already exist.
The log_ref_setup function becomes private and gains a force_create
parameter to force the creation of a reflog even if log_all_ref_updates
is false or the refname is not one of the special refnames.
The new parameter also reduces the need to store, modify, and restore
the log_all_ref_updates global before reflog creation.
In a moment, we will use this to add reflog creation commands to
git-reflog.
Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5100/patch0001')
0 files changed, 0 insertions, 0 deletions