what's your favourite third-party command line git tool? Mostly interested in tools that just do 1 thing (like git-absorb or delta or git-vee), not so much full git UIs like lazygit or magit. Also not looking for prompt tools like starship right now.
@b0rk This probably isn't exactly what you're looking for, but https://www.dulwich.io/ is a great Python library that I've used several times to make Git stuff happen that probably could have been accomplished with the correct bash incantations (e.g. "tell me the next version number") but for me counts as "time to use not-bash" complexity-wise.
@vathpela@leftpaddotpy yeah I almost wrote "even though it's deprecated" but then I saw it's… not? which, hooray, hub does what I want and I have no particular interest in learning a new tool that works differently and doesn't have any other features I want, so I'm glad they didn't
@glyph@leftpaddotpy before I knew about these, I also wrote a tool called 'git-pr' (also at https://github.com/vathpela/git-toys ) such that if you add:
fetch = +refs/pull//head:refs/remotes/origin/pr/
fetch = +refs/pull//merge:refs/remotes/origin/pr-merge/
fetch = +refs/pull/:refs/pull/origin/
to the remote section of your .git/config for a repo, it'll fetch the PRs and you can do "git pr show 21" "git pr cherry-pick 21" etc. It's kind of janky but it works for what it does.
@vathpela@leftpaddotpy Oh looks like I do use gh for this, because gh pr checkout was the only one I could find that set it up so I could push to contributor forks easily. Does git-pr do this too?
@glyph@leftpaddotpy no, because you can't create PRs on GitHub without using their rest API and that was too much work for my tiny brain. Read my git-pr implementation and bask in the glory of how much code it isn't ;)
@vathpela@leftpaddotpy no I don't mean creating a PR, I just mean lining up all the stuff about the approriate push URL. Is that what "pr-merge" is? is that a magic Github string or something of your own invention?
@b0rk I'm not sure if this is quite what you're asking but I use https://github.com/Wilfred/difftastic as my git diff tool and I can't imagine going back to the default.
Add comment