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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bradford C. Smith <bradford.carl.smith@...>
Cc: Junio C Hamano <gitster@...>, <git@...>
Date: Thursday, July 26, 2007 - 2:31 pm

Hi,

I like the general idea.  Thanks.


On Thu, 26 Jul 2007, Bradford C. Smith wrote:


Wouldn't it be better to put the rollback_lock_file() into the if clause 
when commit failed?

Besides, I think you can safely call rollback_lock_file(lock) on a 
committed lock_file, since the name will be set to "" by the latter, which 
is checked by the former.

But I am fine with the patch as is (have not tested it, though).

Ciao,
Dscho

-
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..., Johannes Schindelin, (Fri Jul 27, 5:05 am)