Files
git/builtin
Junio C Hamano 933e44d3a0 "add -p": work-around an old laziness that does not coalesce hunks
Since 0beee4c (git-add--interactive: remove hunk coalescing, 2008-07-02),
"git add--interactive" behaves lazily and passes overlapping hunks to the
underlying "git apply" without coalescing.  This was partially corrected
by 7a26e65 (its partial revert, 2009-05-16), but overlapping hunks are
still passed when the patch is edited.

Teach "git apply" the --allow-overlap option that disables a safety
feature that avoids misapplication of patches by not applying patches
to overlapping hunks, and pass this option form "add -p" codepath.

Do not even advertise the option, as this is merely a workaround, and the
correct fix is to make "add -p" correctly coalesce adjacent patch hunks.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-04-29 15:27:59 -07:00
..
2010-12-12 21:49:53 -08:00
2011-02-27 00:29:58 -08:00
2011-02-14 10:48:06 -08:00
2010-11-24 15:55:19 -08:00
2011-02-15 10:51:08 -08:00
2010-12-12 21:49:50 -08:00
2010-12-10 12:58:06 -08:00
2011-03-03 15:45:10 -08:00
2010-12-12 21:49:52 -08:00
2010-11-24 15:55:19 -08:00
2011-02-15 10:51:08 -08:00
2010-12-08 11:24:12 -08:00
2010-11-24 15:55:19 -08:00
2010-11-17 15:01:00 -08:00
2011-02-15 10:51:08 -08:00