Allow arbitrary command to generate commits for git-icing
I am using a script to generate commit hashes for git cherry-menu to use as such:
git cherry-menu ./my-script.sh
It'd be nice if I could use the same script as input to git-icing
Yeah that's a good idea. Currently use of git cherry is hardcoded into git-icing:
IO.popen(["git", "cherry", "-v"] + ARGV) do |out|
but it would be easy to change this. The only challenge is deciding the appropriate CLI syntax. I guess it could be changed to the same wrapper approach git cherry-menu uses, i.e.
git icing [icing options] COMMAND ARGS
where COMMAND ARGS is typically git cherry -v, although it means the most common usage invocation is a bit ugly:
git icing -v3 git cherry -v
Thanks for the quick response. :-)
Would it not be possible to detect if no COMMAND ARGS sequence has been passed and just default to git cherry -v?
That potential common usage invocation matches git cherry-menu, so perhaps the user might expect that behaviour?
Thanks for the quick response. :-)
Sorry for the slow response this time :-(
Yeah that sounds like it could work - pull requests very welcome ;-)