Differences between git-applu and GNU patch (was: [JGIT PATCH 1/1] jgit: create a tag command)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jakub Narebski
Date: Friday, July 11, 2008 - 3:50 am

Robin Rosenberg <robin.rosenberg.lists@dewire.com> writes:



It is not git-am that should have implemented -l / --ignore-whitespace
option, but git-apply... well, beside passing it to git-apply of course.


I tried to look up how git-apply is implemented (builtin-apply.c),
but it looks like it implements patching itself, and I am not familiar
at all with this code... BTW. why applying patch is not left to xdiff
code?

It would be nice if git-apply implemented larger subset of GNU patch
options, for example --dry-run (which is similar but I think not
exactly the same as --check), --fuzz=<num> (how it differs from -C<n>?)
--strip=<num> as equivalent to -p<n>, -l / --ignore-whitespace, 
--reject-file=<rejectfile> together with --reject...
-- 
Jakub Narebski
Poland
ShadeHawk on #git
--
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:
[JGIT PATCH 1/1] jgit: create a tag command, Robin Rosenberg, (Sun Jul 6, 3:41 pm)
Re: [JGIT PATCH 1/1] jgit: create a tag command, Robin Rosenberg, (Sun Jul 6, 4:16 pm)
Re: [JGIT PATCH 1/1] jgit: create a tag command, Mike Ralphson, (Thu Jul 10, 8:31 am)
Re: [JGIT PATCH 1/1] jgit: create a tag command, Robin Rosenberg, (Thu Jul 10, 11:02 am)
Re: [JGIT PATCH 1/1] jgit: create a tag command, Shawn O. Pearce, (Thu Jul 10, 7:05 pm)
Re: [JGIT PATCH 1/1] jgit: create a tag command, Robin Rosenberg, (Fri Jul 11, 1:28 am)
Re: [JGIT PATCH 1/1] jgit: create a tag command, Mike Ralphson, (Fri Jul 11, 1:45 am)
Differences between git-applu and GNU patch (was: [JGIT PA ..., Jakub Narebski, (Fri Jul 11, 3:50 am)
Re: [JGIT PATCH 1/1] jgit: create a tag command, Shawn O. Pearce, (Fri Jul 11, 8:01 pm)
Re: [JGIT PATCH 1/1] jgit: create a tag command, Shawn O. Pearce, (Fri Jul 11, 8:42 pm)
Re: [JGIT PATCH 1/1] jgit: create a tag command, Robin Rosenberg, (Thu Jul 17, 2:31 pm)
Re: [JGIT PATCH 1/1] jgit: create a tag command, Shawn O. Pearce, (Thu Jul 17, 2:45 pm)
Re: [JGIT PATCH 1/1] jgit: create a tag command, Robin Rosenberg, (Thu Jul 17, 3:24 pm)