feature: add --describe support for git-describe options - #1436
Open
iam-TJ wants to merge 1 commit into
Open
Conversation
iam-TJ
force-pushed
the
feature-support_git-describe_options
branch
from
July 10, 2026 15:20
4ba606a to
08ebd3d
Compare
In my case - working with multiple Linux kernel remote trees - the default Ref: reported for a commit isn't helpful since it shows a prior tag rather than the containing tag. In almost all cases I need to see the equivalent of: git describe --contains and additionally need to filter the returned tags with e.g: --exclude 'next-*' or --match ... This feature adds the command-line option --describe= that accepts additional git-describe options and appends them to the args passed to git-describe. An example usage: tig --describe="--exclude 'next-*' --contains" v6.18..v6.19 drivers/iommu/intel Signed-off-by: Tj <hacker@iam.tj>
iam-TJ
force-pushed
the
feature-support_git-describe_options
branch
from
July 10, 2026 15:32
08ebd3d to
6d5f5ce
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In my case - working with multiple Linux kernel remote trees - the default Ref: reported for a commit isn't helpful since it shows a prior tag rather than the containing tag.
In almost all cases I need to see the equivalent of:
git describe --contains
and additionally need to filter the returned tags with e.g:
--exclude 'next-*'
or
--match ...
This feature adds the command-line option --describe= that accepts additional git-describe options and appends them to the args passed to git-describe.
An example usage:
tig --describe="--exclude 'next-*' --contains" v6.18..v6.19 drivers/iommu/intel
Closes: #1435