login
Header Space

 
 

Re: [PATCH 1/2] git-commit: Disallow unchanged tree in non-merge mode

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: Shawn O. Pearce <spearce@...>, Git Mailing List <git@...>
Date: Thursday, September 13, 2007 - 8:01 pm

On Thu, Sep 13, 2007 at 12:35:35PM -0700, Junio C Hamano wrote:

Yes, the check looks almost redundant if run_status is enabled, but
- the bug fixed by commit v1.5.3.1-15-g4fb5fd5 was found due to
  this check;
- the check itself is very cheap compared to run_status;
- it closes again a race condition which was already fixed once,
  by commit v1.2.4-212-gb831015.


That said, I'm OK to replace
	if test -n "$current" -a ! -f "$GIT_DIR/MERGE_HEAD"
with
	if test -n "$fast" -a -n "$current" -a ! -f "$GIT_DIR/MERGE_HEAD"
if you consider this extra check redundant.


--=20
ldv
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/2] git-commit: Disallow unchanged tree in non-m..., Dmitry V. Levin, (Thu Sep 13, 8:01 pm)
[PATCH 1/2] Fix "git diff" setup code, Linus Torvalds, (Fri Sep 14, 1:17 pm)
Re: [PATCH 1/2] Fix "git diff" setup code, Junio C Hamano, (Fri Sep 14, 2:19 pm)
Re: [PATCH 1/2] Fix "git diff" setup code, Linus Torvalds, (Fri Sep 14, 2:30 pm)
Re: [PATCH 1/2] Fix "git diff" setup code, Junio C Hamano, (Fri Sep 14, 3:11 pm)
Re: [PATCH 1/2] Fix "git diff" setup code, Linus Torvalds, (Fri Sep 14, 3:46 pm)
[PATCH 2/2] Fix the rename detection limit checking, Linus Torvalds, (Fri Sep 14, 1:39 pm)
Re: [PATCH 2/2] Fix the rename detection limit checking, Linus Torvalds, (Fri Sep 14, 2:44 pm)
Re: [PATCH 2/2] Fix the rename detection limit checking, Linus Torvalds, (Fri Sep 14, 2:49 pm)
speck-geostationary