gitless icon indicating copy to clipboard operation
gitless copied to clipboard

improve git/gitless interaction: print git commands

Open kontrafiktion opened this issue 9 years ago • 4 comments
trafficstars

I propose to add a verbose mode, where all executed git commands are printed to stderr. Most people will have to learn git eventually, because everyone around them is using plain git.

Therefore showing them the 'proper' git commands helps them understanding git and explaining to people only knowing git what is going on.

I would propose to simply add a '-v' switch. Someone who wants to have that always switched on could easily create an alias.

kontrafiktion avatar Oct 23 '16 13:10 kontrafiktion

@kontrafiktion are you sure that gitless uses git commands and not some git library through different API?

techtonik avatar Oct 23 '16 14:10 techtonik

it uses git and pygit2, bur even for the latter I would think that is is possible 'translate' all the calls to git commands

kontrafiktion avatar Oct 23 '16 15:10 kontrafiktion

@kontrafiktion that's a lot of work to maintain this mapping and there is no guarantee that the mapping will be correct, in case of pygit2 calls.

techtonik avatar Oct 23 '16 18:10 techtonik

Just as a side note, git-town does exactly this (example) and I've found it to be pretty useful.

waldyrious avatar Aug 08 '17 10:08 waldyrious