Johannes Schindelin 823347ee45 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-18 01:11:26 +01:00
2016-03-18 01:11:23 +01:00
2016-03-18 01:11:24 +01:00
2016-03-18 01:11:23 +01:00
2016-02-22 14:51:09 -08:00
2016-01-03 19:07:29 +09:00
2016-03-18 01:11:23 +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-18 01:09:17 +01:00
2016-02-22 14:51:09 -08:00
2016-03-18 01:11:19 +01:00
2016-03-18 01:09:53 +01:00
2015-11-20 08:02:05 -05:00
2015-11-20 08:02:05 -05:00
2016-03-17 11:26:18 -07:00
2015-09-28 14:57:10 -07:00
2016-02-22 14:51:09 -08:00
2016-03-18 01:09:17 +01:00
2016-02-22 14:51:09 -08:00
2015-12-28 13:58:58 -08:00
2016-03-17 11:32:13 -07:00
2016-02-22 14:51:09 -08:00
2016-02-22 14:51:09 -08:00
2016-02-22 14:51:09 -08:00
2015-09-25 10:18:18 -07:00
2016-03-18 01:11:19 +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
2016-03-18 01:11:18 +01:00
2015-11-20 08:02:05 -05:00
2016-03-18 01:09:54 +01:00
2015-09-25 08:54:54 -07:00
2016-02-25 12:35:31 -08:00
2016-03-17 11:32:13 -07: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-18 01:08:54 +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
2015-08-11 14:29:36 -07: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 462 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%