git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC PATCH 2/2] gitk: Show the rev(s) the user specified on the command line in the window title.

From
Paul Mackerras <paulus@samba.org>
Date
Apr 6, 2015, 04:37 UTC
Message-ID
<20150406043711.GC31463@iris.ozlabs.ibm.com>
In-Reply-To
<1420566720-25238-3-git-send-email-marcnarc@xiplink.com>
On Tue, Jan 06, 2015 at 12:52:00PM -0500, Marc Branchaud wrote:
Show 11 quoted lines
> Signed-off-by: Marc Branchaud <marcnarc@xiplink.com>
> ---
> 
> I often open multiple gitk windows in the same working directory to examine
> other branches or refs in the repo.  This change allows me to distinguish
> which window is showing what.
> 
> This is an RFC because it doesn't behave great with views.  I don't use views
> at all, so this doesn't bother me.  I'm not too sure what should be displayed
> if the user changes views -- probably the view name, but I'm not sure how to
> get a that in the code.

The view name is in $viewname($curview). If that is "Command line" you probably want to show some selected command line arguments.

Using $vrevs($curview) seems about right, though it will contain "--gitk-symmetric-diff-marker" in some situations, which is an internal thing that we don't want to show externally. You should probably filter it out.

The patch will need a proper description before I can apply it, of course.

Paul.
Previous: Marc BranchaudNext: Marc Branchaud
Message 4 of 12 in “Tweaking the gitk window title.”
  1. 0/2 Tweaking the gitk window title.Marc Branchaud, Jan 6, 2015
  2. 1/2 gitk: Rearrange window title to be more conventional.Marc Branchaud, Jan 6, 2015
  3. 2/2 gitk: Show the rev(s) the user specified on the command line in the window title.Marc Branchaud, Jan 6, 2015
  4. Paul MackerrasApr 6, 2015
  5. [PATCHv2] gitk: Show the current view's name in the window title.Marc Branchaud, Apr 7, 2015
  6. Marc BranchaudMay 4, 2015
  7. Paul MackerrasMay 17, 2015
  8. Marc BranchaudJan 26, 2015
  9. Marc BranchaudMar 2, 2015
  10. 1/2 gitk: Rearrange window title to be more conventional.Marc Branchaud, Mar 23, 2015
  11. 2/2 gitk: Show the rev(s) the user specified on the command line in the window title.Marc Branchaud, Mar 23, 2015
  12. Paul MackerrasApr 6, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.