Improve ability to copy diffs for the vibecoders and Implement git show #5053
Closed
eduardoarandah
started this conversation in
Ideas
Replies: 1 comment
-
|
Self answered: copy content of old file with
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
-
Improve copying diffs
Turns out, the LLMs understand diffs perfectly.
Prompting in markdown with diffs as examples work great!
"hey AI, this is how it's done, then put the diff"
example:
However, copying diffs in lazygit is not straightforward
Let's open diff for this file:
lazygit -f app/Models/MyExample.phpImplement git show
See the file exactly as it was at certain commit, not as a diff but the hole file.
Like doing
git show 0d6b0012:app/Models/MyExample.phpIn vim + fugitive you can go to a file and do
:0Gclog!Also, making the code selectable makes it super useful for day to day coding or prompting
Beta Was this translation helpful? Give feedback.
All reactions