Re: [PATCH 18/22] lockfile: also keep track of the filename of the file being locked
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 2, 2014, 17:19 UTC
- Message-ID
- <xmqq7g77wsxj.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <1396367910-7299-19-git-send-email-mhagger@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> writes:
> This reduces the amount of string editing gyrations and makes it > unnecessary for callers to know how to derive the filename from the > lock_filename.
Hmph.
Is it worth duplicating the whole thing? If you are planning to break the invariant lock_filename === filename + LOCK_SUFFIX in future changes in the series, it is understandable, though.