Open 130s opened 3 years ago
The backticks are being interpreted by the shell before vcstool
is even invoked. So I don't see a way to achieve what you describe as the "ideal condition". I also wouldn't be a fan of passing an arbitrary expression string to vcstool
which it then needs to evaluate.
Since #121 vcstool
defaults to use --pretty=short
. If you would like to contribute an extra option to choose e.g. a more compact formatting that would be great.
Problem
By printing VCS' commit message format per every commit, the output of
vcs log --limit_untagged
can be large, which often makes it hard to grasp. I imagine the problem is pretty much the same withgit
developers adding--oneline
option tolog
verb.Attempted (but wasn't successful) approach
Using
vcs custom
I tried the following (the argument passed is taken from whatvcs log --limit_untagged
internally does).The following works. So I assume plugging in the value by back-tick doesn't work.
Potentially ideal condition
It'd be convenient if the output of
vcs log --limit_untagged
can be simplified when desired (maybe with an option).Larger question
It's probably not difficult to change
vcstool
's code to add an option (haven't looked into it though) to achieve what's stated in the ideal condition. But that would add more leaf functionality and I'm afraid that would add more maintenance effort.Changing
custom
verb so that it can accept back-tick would eliminate such a concern. Just an idea.