Johannes Schindelin f37950ee47 git gui: fix staging a second line to a 1-line file
When a 1-line file is augmented by a second line, and the user tries to
stage that single line via the "Stage Line" context menu item, we do not
want to see "apply: corrupt patch at line 5".

The reason for this error was that the hunk header looks like this:

	@@ -1 +1,2 @@

but the existing code expects the original range always to contain a
comma. This problem is easily fixed by cutting the string "1 +1,2"
(that Git GUI formerly mistook for the starting line) at the space.

This fixes https://github.com/git-for-windows/git/issues/515

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2016-03-14 09:50:34 +01:00
2016-03-14 09:50:26 +01:00
2016-03-14 09:50:29 +01:00
2016-03-14 09:50:24 +01:00
2016-02-22 14:51:09 -08:00
2016-01-03 19:07:29 +09:00
2016-03-14 09:50:26 +01:00
2015-11-28 12:11:12 -05:00
2016-02-22 14:51:09 -08:00
2016-02-22 14:50:32 -08:00
2016-02-22 14:50:32 -08:00
2016-02-22 14:51:09 -08:00
2015-10-05 12:30:19 -07:00
2015-11-20 08:02:05 -05:00
2016-03-14 09:30:06 +01:00
2016-02-22 14:51:09 -08:00
2016-03-14 09:50:12 +01:00
2016-03-14 09:43:37 +01:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2016-02-22 14:51:09 -08:00
2016-03-14 09:30:06 +01:00
2016-02-22 14:51:09 -08:00
2015-12-28 13:58:58 -08:00
2016-03-10 11:14:08 -08:00
2016-02-22 14:51:09 -08:00
2016-02-22 14:51:09 -08:00
2015-11-20 08:02:05 -05:00
2016-02-22 14:51:09 -08:00
2016-03-14 09:50:12 +01:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2016-02-22 14:51:09 -08:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2016-03-14 09:50:07 +01:00
2015-11-20 08:02:05 -05:00
2016-03-14 09:43:39 +01:00
2016-02-25 12:35:31 -08:00
2016-03-10 11:14:08 -08:00
2015-10-05 12:30:05 -07:00
2015-10-05 12:30:05 -07:00
2015-10-26 15:55:20 -07:00
2015-11-20 08:02:05 -05:00
2016-03-14 09:29:17 +01:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2016-02-22 10:40:35 -08:00
2015-11-20 08:02:05 -05:00
2016-01-19 11:22:29 -08:00
2015-12-10 12:36:13 -08:00

Git for Windows

Join the chat at https://gitter.im/git-for-windows/git

This is the source code of Git for Windows, forked from Git.

This project is run by a governance model. If you encounter problems, you can report them as GitHub issues, discuss them on Git for Windows' Google Group, and contribute bug fixes.

Description
A fork of Git containing Windows-specific patches.
Readme 456 MiB
2025-08-19 03:50:05 -05:00
Languages
C 51.7%
Shell 37.5%
Perl 4.3%
Tcl 3%
Python 0.8%
Other 2.5%