Isabella Stephens
96cfa94e68
blame: prevent error if range ends past end of file
...
If the -L option is used to specify a line range in git blame, and the
end of the range is past the end of the file, git will fail with a fatal
error. This commit prevents such behavior - instead we display the blame
for existing lines within the specified range. Tests are amended
accordingly.
This commit also fixes two corner cases. Blaming -L n,-(n+1) now blames
the first n lines of a file rather than from n to the end of the file.
Blaming -L ,-n will be treated as -L 1,-n and blame the first line of
the file, rather than blaming the whole file.
Signed-off-by: Isabella Stephens <istephens@atlassian.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2018-06-15 10:29:13 -07:00
..
2018-03-21 11:30:10 -07:00
2018-03-06 14:54:02 -08:00
2017-10-06 10:07:18 +09:00
2018-02-08 12:37:30 -08:00
2017-11-13 10:51:14 +09:00
2018-06-15 10:29:13 -07:00
2018-02-09 10:24:50 -08:00
2017-03-21 11:18:41 -07:00
2018-03-06 14:54:07 -08:00
2017-06-15 12:56:22 -07:00
2018-02-12 13:09:35 -08:00
2017-06-15 12:56:22 -07:00
2017-11-15 12:04:57 +09:00
2018-02-09 10:24:50 -08:00
2018-03-14 12:01:07 -07:00
2018-02-09 10:24:50 -08:00
2018-02-15 15:18:13 -08:00
2017-06-15 12:56:22 -07:00
2018-01-30 10:42:36 -08:00
2018-03-21 11:30:10 -07:00
2018-02-21 14:27:30 -08:00
2017-08-23 15:12:06 -07:00
2017-05-30 14:45:03 +09:00
2018-02-27 10:33:57 -08:00
2017-08-03 13:11:02 -07:00
2017-10-07 16:27:55 +09:00
2018-02-14 13:10:05 -08:00
2017-11-13 13:20:44 +09:00
2017-10-07 10:20:56 +09:00
2018-02-14 13:10:05 -08:00
2017-12-08 09:58:52 -08:00
2018-03-14 12:01:07 -07:00
2017-12-27 11:16:23 -08:00
2017-10-04 11:35:29 +09:00
2018-05-21 23:55:12 -04:00
2018-03-14 12:01:07 -07:00
2017-09-27 15:45:24 +09:00
2018-03-14 12:01:07 -07:00
2018-01-30 10:42:36 -08:00
2018-02-22 10:08:05 -08:00
2018-05-21 23:55:12 -04:00
2018-02-22 10:08:05 -08:00
2017-08-26 22:55:04 -07:00
2018-02-02 10:40:34 -08:00
2017-11-21 14:07:50 +09:00
2018-02-09 10:24:51 -08:00
2017-06-24 14:28:41 -07:00
2017-03-21 11:18:41 -07:00
2017-05-08 12:18:19 +09:00
2017-11-15 12:14:32 +09:00
2017-06-15 12:56:22 -07:00
2017-03-26 22:08:21 -07:00
2017-11-09 14:31:27 +09:00
2017-08-14 12:38:54 -07:00
2018-03-21 11:30:10 -07:00
2018-01-30 10:42:36 -08:00
2018-03-06 14:54:07 -08:00
2018-03-21 11:30:10 -07:00
2017-10-18 14:19:09 +09:00
2018-03-14 12:01:07 -07:00
2018-03-14 12:01:06 -07:00
2018-02-22 10:08:05 -08:00
2017-04-14 03:53:25 -07:00
2017-06-15 12:56:22 -07:00
2017-08-26 22:55:09 -07:00
2018-03-06 14:54:07 -08:00
2018-03-14 12:01:07 -07:00
2018-02-09 10:24:52 -08:00
2017-08-03 13:11:02 -07:00
2018-02-21 12:45:04 -08:00
2018-01-30 10:42:36 -08:00
2018-03-14 12:01:06 -07:00
2017-09-22 12:49:57 +09:00
2017-05-30 14:45:04 +09:00
2018-03-14 12:01:07 -07:00
2017-12-08 09:52:42 -08:00
2018-03-14 12:01:07 -07:00
2017-09-14 15:17:59 +09:00
2018-02-15 14:55:45 -08:00
2018-03-21 11:30:15 -07:00
2018-03-06 14:54:07 -08:00
2017-12-13 11:15:14 -08:00
2018-03-21 11:30:10 -07:00
2017-08-22 10:29:03 -07:00
2017-09-09 01:57:03 +09:00
2017-12-27 11:16:29 -08:00
2017-10-16 11:05:51 +09:00
2017-06-15 12:56:22 -07:00
2018-05-21 23:54:28 -04:00
2017-11-06 10:31:08 +09:00
2018-03-14 12:01:07 -07:00
2017-09-25 15:24:06 +09:00
2018-05-21 23:55:12 -04:00
2018-05-21 23:54:28 -04:00
2017-11-06 10:31:08 +09:00
2018-02-09 10:24:50 -08:00
2017-05-30 14:45:04 +09:00
2017-06-15 12:56:22 -07:00
2018-02-14 13:10:05 -08:00
2017-06-15 12:56:22 -07:00
2017-08-11 13:26:58 -07:00
2018-03-14 12:01:07 -07:00
2017-06-15 12:56:22 -07:00