Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Authors in gto history #345

Open
abpwrs opened this issue Mar 22, 2023 · 2 comments
Open

Feature Request: Authors in gto history #345

abpwrs opened this issue Mar 22, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@abpwrs
Copy link

abpwrs commented Mar 22, 2023

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 abpwrs changed the title Authors in gto history Feature Request: Authors in gto history Mar 22, 2023
@aguschin
Copy link
Contributor

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 aguschin self-assigned this Mar 24, 2023
@aguschin aguschin added the enhancement New feature or request label Mar 24, 2023
@abpwrs
Copy link
Author

abpwrs commented Mar 27, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants