goldstar611 / gitless

A maintained fork of the simple git interface
https://goldstar611.github.io/gitless/
MIT License
26 stars 2 forks source link

Adds gl patch, a wrapper for git format-patch #33

Closed sirlucjan closed 2 years ago

sirlucjan commented 2 years ago

Simply wrapper to git format-patch

Signed-off-by: Piotr Gorski lucjan.lucjanov@gmail.com

sirlucjan commented 2 years ago

I added a similar solution to gl pull and gll fetch.

sirlucjan commented 2 years ago

It should be ok:

lucjan at archlinux ~/Poczekalnia/Patchmaker/trunk-v3/src/linux-5.16.11 10:44:36 9ca84058 master    
❯ gl patch HEAD~1              
0001-LL-Add-.ll-version.patch
✔ Creating a patch sucessful
lucjan at archlinux ~/Poczekalnia/Patchmaker/trunk-v3/src/linux-5.16.11 10:44:47 9ca84058 master    
❯ gl patch HEAD~2
fatal: ambiguous argument 'HEAD~2': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
✘ Creating a patch failed
goldstar611 commented 2 years ago

This looks great. Thanks for the pull request!