jesseduffield.lazygit/pkg
Stefan Haller 4cd15a36e3 Fix custom patch operations on added files
Several custom patch commands on parts of an added file would fail with the
confusing error message "error: new file XXX depends on old contents". These
were dropping the custom patch from the original commit, moving the patch to a
new commit, moving it to a later commit, or moving it to the index.

We fix this by converting the patch header from an added file to a diff against
an empty file. We do this not just for the purpose of applying the patch, but
also for rendering it and copying it to the clip board. I'm not sure it matters
much in these cases, but it does feel more correct for a filtered patch to be
presented this way.
2024-06-23 12:40:31 +02:00
..
app Add -profile command line flag 2024-06-03 19:07:24 +02:00
cheatsheet Render keybinding cheatsheet as markdown table 2024-01-28 08:12:01 +11:00
commands Fix custom patch operations on added files 2024-06-23 12:40:31 +02:00
common Add AppState to common.Common 2023-09-04 17:48:39 +02:00
config Add user config gui.commitAuthorFormat 2024-06-15 10:39:50 +04:00
constants Make the links in the status panel point to the current version rather than master 2024-03-22 08:13:59 +01:00
env Support bare worktrees where worktree does not have its own .git file 2023-08-07 22:40:53 +10:00
fakes cleanup integration test code 2023-02-26 12:54:13 +11:00
gui Fix custom patch operations on added files 2024-06-23 12:40:31 +02:00
i18n Add prompt to the remote branch checkout menu 2024-06-23 12:33:16 +02:00
integration Fix custom patch operations on added files 2024-06-23 12:40:31 +02:00
jsonschema Fix boolean config keys not appearing in the generated Config.md 2024-05-31 20:07:58 +02:00
logs Remove secureexec package 2023-07-30 19:59:51 +10:00
snake integrate snake game into lazygit 2022-12-30 12:18:59 +11:00
tasks Use ScanLinesAndTruncateWhenLongerThanBuffer instead of bufio.ScanLines 2024-05-15 13:27:01 +02:00
theme pkg: fix some comment 2024-04-07 16:09:26 +08:00
updates Construct arg vector manually rather than parse string 2023-05-23 19:49:19 +10:00
utils Use actual ellipsis character instead of ... to truncate strings 2024-06-23 12:25:28 +02:00