gto icon indicating copy to clipboard operation
gto copied to clipboard

Feature Request: Authors in `gto history`

Open abpwrs opened this issue 1 year ago • 2 comments

Would it be possible to add an "author" column to the result of gto history?

Where "commit" events have the commit author as "author", and for all gto events ("assignment", and "registration") the "author" is the git tag author (might only work for annotated tags and not lightweight).

abpwrs avatar Mar 22 '23 16:03 abpwrs

Hi @abpwrs! Thanks for the feature request. I can implement this, but first let's come up with a decent CLI option for that.

I can implement something like

$ gto history --show default,author,email

default referencing to the default column set, so one could select any subset he likes.

WDYT - does it look right or you would suggest some other way to control that?

aguschin avatar Mar 24 '23 11:03 aguschin

Hey @aguschin, that seems reasonable to me!

To clarify, if I were to do: $ gto history --show author it would only show the author column for each event w/o any other context, correct?

A couple suggestions/thoughts would be:

  1. to allow $ gto history --show all as a short-hand for all possible columns
  2. maybe using --format over --show (something closer to git log --format might be more intuitive for gto users that likely already know git)

abpwrs avatar Mar 27 '23 15:03 abpwrs