login
Header Space

 
 

Re: [PATCH] use lockfile.c routines in git_commit_set_multivar()

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: Junio C Hamano <gitster@...>, <git@...>
Date: Thursday, July 26, 2007 - 2:48 pm

On 7/26/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

Actually no.  There are multiple goto statements that lead to
out_free.  It isn't even needed at the point that the commit failed,
because commit_lock_file() sets the lock file name to "" even when it
fails.


Quite right.  I really just put in the comment and 'lock= NULL' line
to increase readability.  I wanted to make it very clear to the reader
that the commit wouldn't be undone by the rollback.


Thanks!

FWIW, I have successfully run 'make test' and also verified that it
behaves as I expect with my ~/.gitconfig symlink (in conjunction with
the my other patch for resolving symlinks).

Best Regards,

Bradford
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] use lockfile.c routines in git_commit_set_multivar(), Bradford C. Smith, (Thu Jul 26, 12:55 pm)
Re: [PATCH] use lockfile.c routines in git_commit_set_multiv..., Johannes Schindelin, (Thu Jul 26, 2:31 pm)
Re: [PATCH] use lockfile.c routines in git_commit_set_multiv..., Bradford Smith, (Thu Jul 26, 2:48 pm)
Re: [PATCH] use lockfile.c routines in git_commit_set_multiv..., Johannes Schindelin, (Fri Jul 27, 5:05 am)
speck-geostationary