Johannes Schindelin schrieb: > Hi, > > On Thu, 5 Jun 2008, Johannes Sixt wrote: > >> Johannes Schindelin schrieb: >>> +--fixup-line-counts:: >>> + Fix up the line counts (e.g. after editing the patch without >>> + adjusting the hunk headers appropriately). >> This sort of implies that there is some kind of output that tells the >> correct line counts. But that isn't the case (if I read the patch >> correctly). So I suggest to name the option --ignore-line-counts. > > But there is some kind of output: the hunks themselves. Is there? I did this (it rewrites all line counts to 1): $ git diff ..HEAD~1 | sed -e '/^@@/s/,[0-9]+ /,1 /g' | ./git-apply --fixup-line-counts and there was no output. Instead, the patch was applied. > And the line > counts are not ignored, but they are actively rewritten. Of course, internally there is some sort of "output" from the fixup routine, and the line counts are rewritten and then are not ignored. But the user doesn't care about this internal procedure. From the user's perspective, the line counts of the input patch are ignored. Apart from this color of the bikeshed I like your patch. -- Hannes -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html