Re: [PATCH 1/2] add_to_alternates_file: don't add duplicate paths

2015-06-01 Thread Jeff King
On Sun, May 31, 2015 at 11:15:22AM -0700, Jim Hill wrote: Check for an existing match before appending a path to the alternates file. Beyond making git look smart to anyone checking the alternates file, this removes the last use of hold_lock_file_for_append. Makes sense. We don't catch _all_

[PATCH 1/2] add_to_alternates_file: don't add duplicate paths

2015-05-31 Thread Jim Hill
Check for an existing match before appending a path to the alternates file. Beyond making git look smart to anyone checking the alternates file, this removes the last use of hold_lock_file_for_append. Signed-off-by: Jim Hill gjth...@gmail.com --- sha1_file.c| 29