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

add option --fixed-tag and --fixed-version #290

Open
copernico opened this issue Nov 8, 2021 · 3 comments
Open

add option --fixed-tag and --fixed-version #290

copernico opened this issue Nov 8, 2021 · 3 comments

Comments

@copernico
Copy link
Contributor

copernico commented Nov 8, 2021

  • add option --fixed-tag and --fixed-version so that the left-hand version/tag of an interval is inferred by the tool and used automatically (with a visible message indicating which tag-version is considered). If it cannot be determined uniquely, the tool will print a message showing all the alternatives and stop. The user can then retry with one of those alternatives, if they wish.
@copernico
Copy link
Contributor Author

copernico commented Nov 15, 2021

This is a bit trickier than I expected because the function to obtain the "previous tag" is commented out in the current code and would require some rework to be re-integrated. In particular, it currently expects a "git" (repository) object as a parameter, which is then used to get the list of existing tags in the repository and their timestamp. Instead, we'd better obtain this list first and then pass it to the function.

@copernico copernico self-assigned this Nov 15, 2021
@copernico
Copy link
Contributor Author

One way to approach this is to imply an interactive mode, whereby the tool would try to identify the previous tag/version but the user would have to confirm to proceed.

@copernico
Copy link
Contributor Author

copernico commented Oct 6, 2022

It seems that some suitable git tricks might help us here.
For instance, this command returns all the commits annotated by some tag, and the branching/parent/child relation among them is also preserved, as far as I understand.

git log --tags --graph --oneline --decorate --simplify-by-decoration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant