Merged
Conversation
This exposes the text of the currently selected line as the %(text)
variable. Only the pager view is supported at the moment.
This is particularly handy for using Tig as a scriptable pager. For
instance, here's a dumb remote manager:
$ echo 'bind pager <Enter> git remote show -n %(text)' >> ~/.tigrc
$ echo 'bind pager U git remote update -p %(text)' >> ~/.tigrc
$ git remote | tig
Pressing Enter shows remote information, pressing U fetches the remote.
Owner
|
Cool. |
zevv
added a commit
to zevv/tig
that referenced
this pull request
Jun 19, 2017
branch, but the graph gives the impression the commit is not merged. The old case rendered this result. Not that the bottom branch looks like it terminates without being merged: ● Update NEWS with post 2.1.1 changes ●─╮ Merge pull request jonas#457 from vivien/text-variable │ ● add a %(text) variable ●─╯ Merge pull request jonas#439 from peff/fix-blame-args │ ● blame: allow user to specify rev arguments to blame ●─╯ Update OSX make config to find brew installed ncurses ● Remove unneeded calls to {def,reset}_prog_mode With fix I get this: ● Update NEWS with post 2.1.1 changes ●─╮ Merge pull request jonas#457 from vivien/text-variable │ ● add a %(text) variable ●─┤ Merge pull request jonas#439 from peff/fix-blame-args │ ● blame: allow user to specify rev arguments to blame ●─╯ Update OSX make config to find brew installed ncurses ● Remove unneeded calls to {def,reset}_prog_mode Related to jonas#419 My current solution is not nice: it depends on the order of evaluation in the graph_symbol_to_XXX() functions so that the new case of graph_symbol_merge_branch() is hit before graph_symbol_turn_left() or graph_symbol_merge() do. The graph-generating code is complex, and I have not spent enough time in it to know for sure my fix does not mess up other situations.
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.
This exposes the text of the currently selected line as the %(text)
variable. Only the pager view is supported at the moment.
This is particularly handy for using Tig as a scriptable pager. For
instance, here's a dumb remote manager:
Pressing Enter shows remote information, pressing U fetches the remote.