Re: Why doesn't git-apply remove empty file

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Francis Moreau <francis.moro@...>
Cc: René Scharfe <rene.scharfe@...>, Junio C Hamano <gitster@...>, <git@...>
Date: Thursday, August 14, 2008 - 4:02 pm

On Thu, 14 Aug 2008, Linus Torvalds wrote:

Side note: there's a way to do a "nothing or nothing" thing, and then test 
the return value of whether the do-nothing was successful or not.

So a reasonably common operation thing for scripting GNU patch is to 
literally do

	patch --dry-run

first to see if the patch will succeed.

..or to play games with backup and reject files after-the-fact, of course.

			Linus
--
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:
Why doesn't git-apply remove empty file, Francis Moreau, (Tue Aug 12, 12:17 pm)
Re: Why doesn't git-apply remove empty file, Junio C Hamano, (Tue Aug 12, 8:25 pm)
Re: Why doesn't git-apply remove empty file, Francis Moreau, (Wed Aug 13, 3:48 am)
Re: Why doesn't git-apply remove empty file, René Scharfe, (Wed Aug 13, 5:52 pm)
Re: Why doesn't git-apply remove empty file, Linus Torvalds, (Wed Aug 13, 7:09 pm)
Re: Why doesn't git-apply remove empty file, Francis Moreau, (Thu Aug 14, 3:42 pm)
Re: Why doesn't git-apply remove empty file, Linus Torvalds, (Thu Aug 14, 3:57 pm)
Re: Why doesn't git-apply remove empty file, Francis Moreau, (Thu Aug 14, 4:17 pm)
Re: Why doesn't git-apply remove empty file, Linus Torvalds, (Thu Aug 14, 4:02 pm)
Re: Why doesn't git-apply remove empty file, Stephan Beyer, (Thu Aug 14, 4:21 pm)
Re: Why doesn't git-apply remove empty file, Linus Torvalds, (Fri Aug 15, 11:53 am)
Re: Why doesn't git-apply remove empty file, Jeff King, (Thu Aug 14, 4:54 pm)
Re: Why doesn't git-apply remove empty file, Stephan Beyer, (Thu Aug 14, 5:10 pm)
Re: Why doesn't git-apply remove empty file, Jeff King, (Fri Aug 15, 12:08 am)