Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy .patch when viewing a commit #556

Open
BChausse-GoTo opened this issue Aug 9, 2024 · 0 comments
Open

Copy .patch when viewing a commit #556

BChausse-GoTo opened this issue Aug 9, 2024 · 0 comments

Comments

@BChausse-GoTo
Copy link

Is your feature request related to a problem? Please describe.

Typing c allows to copy almost anything from within git serve. However, when looking at a commit,
that key does nothing.

It could be quite helpful to copy the patch contents instead. This would allow one to patch his local repo without
even cloning the upstream one.

Describe the solution you'd like

Typing c when viewing a git commit would copy to my clipboard the contents from the following:

git show --format=raw --color=never -p <currently_observed_commit_hash>

One could then just paste it into a local file and patch his local branch(es).

Describe alternatives you've considered

Manually cloning the repo (but this is tedious when a commit is right there before you)

Additional context

Typing c here could give me the .patch version of if ;)

Screenshot 2024-08-09 at 2 45 46 PM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant