]> git.ipfire.org Git - thirdparty/git.git/commit - lockfile.c
commit_lock_file(): use get_locked_file_path()
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 10 Aug 2015 09:47:40 +0000 (11:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Aug 2015 19:57:14 +0000 (12:57 -0700)
commit9c77381d6a495e102b811df954d0fa14e62250ab
tree6e40c31556209cb4c77b570924302e20fe937dba
parentb4fb09e4da53bfc6c720337142af5db3204736d5
commit_lock_file(): use get_locked_file_path()

First beef up the sanity checking in get_locked_file_path() to match
that in commit_lock_file(). Then rewrite commit_lock_file() to use
get_locked_file_path() for its pathname computation.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
lockfile.c