Stefan Haller and Claude Opus 5.5
e67a85a075
Fix diff paths when diff.srcPrefix and diff.dstPrefix are set
...
If diff.srcPrefix and diff.dstPrefix are set (git 2.45 and later),
pressing space on a line in the focused main view does nothing. These
configs change the diff of a commit too, so the other commands that
read a path out of a diff go wrong as well.
The configs replace the a/ and b/ in front of the paths of a diff with
any string. We only know how to strip a/ and b/, so the paths we read
out of the diff header don't name a file.
We can't tell from the diff where such a prefix ends, so override the
two configs along with diff.noprefix.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com >
2026-10-07 13:53:03 +02:00
..
2026-09-19 16:48:35 +02:00
2026-09-19 16:48:35 +02:00
2024-04-12 08:33:47 +02:00
2026-01-25 11:47:07 +01:00
2026-07-19 19:22:48 +02:00
2026-09-27 11:00:36 +02:00
2026-09-27 11:00:36 +02:00
2026-09-27 11:00:36 +02:00
2026-09-27 11:00:36 +02:00
2026-07-04 13:05:09 +02:00
2026-10-07 13:48:57 +02:00
2026-08-29 17:25:59 +02:00
2026-08-29 17:25:59 +02:00
2025-07-27 12:05:41 +02:00
2026-10-07 13:53:03 +02:00
2026-10-07 13:48:57 +02:00
2026-07-31 08:42:51 +02:00
2026-05-26 11:57:09 +02:00
2026-05-26 11:57:09 +02:00
2025-04-09 10:44:36 +02:00
2026-07-31 08:42:51 +02:00
2026-10-05 11:20:31 +02:00
2026-10-07 13:48:57 +02:00
2026-08-08 12:43:42 +02:00
2026-08-15 11:26:58 +02:00
2026-07-30 17:31:56 +02:00
2026-07-30 17:31:56 +02:00
2026-05-26 11:57:09 +02:00
2026-05-26 11:57:09 +02:00
2026-03-27 14:34:47 +01:00
2026-10-07 13:53:03 +02:00
2026-07-31 09:01:44 +02:00
2026-08-12 19:13:06 +02:00
2026-05-10 15:28:14 +02:00
2025-07-31 15:21:34 +02:00
2026-10-07 13:48:57 +02:00
2025-10-10 12:55:58 +02:00
2026-07-31 08:37:28 +02:00
2026-09-19 18:10:59 +02:00
2026-09-19 18:10:59 +02:00
2025-07-27 12:05:41 +02:00
2025-07-27 12:05:41 +02:00
2026-09-19 18:10:59 +02:00
2026-09-22 10:48:22 +02:00
2026-09-27 11:19:25 +02:00
2026-08-08 11:15:01 +02:00
2026-09-14 10:49:29 +02:00
2025-08-25 19:23:30 +02:00
2025-08-25 19:23:30 +02:00
2026-10-07 13:53:03 +02:00
2026-10-07 13:51:16 +02:00
2026-06-19 18:07:48 +02:00
2026-06-19 18:07:48 +02:00
2026-08-08 11:15:01 +02:00
2026-09-14 10:49:29 +02:00
2026-09-27 08:21:02 +02:00
2026-09-27 11:00:36 +02:00
2025-07-28 10:53:51 +02:00
2025-07-28 10:53:51 +02:00
2026-09-27 11:19:25 +02:00
2024-01-10 09:18:38 +01:00
2024-01-10 09:18:38 +01:00
2026-10-07 13:53:03 +02:00
2026-10-07 13:51:16 +02:00
2026-08-08 11:15:01 +02:00
2026-09-27 11:00:36 +02:00
2026-09-14 10:49:29 +02:00