agit.vim icon indicating copy to clipboard operation
agit.vim copied to clipboard

Add ability to use arbitrary log formats

Open prati0100 opened this issue 4 years ago • 4 comments

Add a new version of the :Agit command called :Agit! that takes arbitrary git-log arguments. This lets people use various options in git-log like -L, --authot, pathspecs, etc.

The implementation is a bit hacky but works for me.

prati0100 avatar Jul 01 '20 09:07 prati0100

Agit! is not suitable name for this feature. I think ! means overwrite (:w!, :func!), force (:q!, :e!), invert (:global!, :sort!) or make some small changes (:join!, :silent!).

cohama avatar Jul 01 '20 13:07 cohama

Agit! is not suitable name for this feature. I think ! means overwrite (:w!, :func!), force (:q!, :e!), invert (:global!, :sort!) or make some small changes (:join!, :silent!).

Ok. What name would you suggest? I'm not great at naming things, and I can't think of anything sensible.

prati0100 avatar Jul 01 '20 16:07 prati0100

How aboud :AgitWithFormat?

cohama avatar Jul 06 '20 08:07 cohama

Hmm, it is a mouthful. I don't think it will be all that easy to type or remember. And I also don't think it represents what the command does very well. We can pass much more than just formatting options to git-log. Thinking about it a bit more, I am inclined towards :AgitLog. It might cause confusion with :Agit, and it doesn't represent the difference between the two clearly either, but it looks like the lesser of the two evils. sigh naming things is hard. Thoughts?

prati0100 avatar Jul 11 '20 09:07 prati0100