git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Burton <markb@ordern.com>
To: Git Mailing List <git@vger.kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Subject: gitk: 'show origin of this line' barfs if gitk run in subdir
Date: Wed, 3 Dec 2008 20:51:58 +0000	[thread overview]
Message-ID: <20081203205158.6b4b62c7@crow> (raw)


Hi,

I was just trying out the new gitk feature that shows you the origin of a
selected line in the diff pane and found that it doesn't work right if
gitk is not started in the top-level work directory - i.e. if you are
in a subdir it pops up an error message of this form:

Error running git blame: fatal: no such path $path in $sha1

I guess it needs something like subdir-depth number of ../ prepended to
the front of the pathname to make the blame succeed.

I could try and fix this but I am sure that others who understand
the sources of gitk/git-blame/git can do it much quicker than me.

Cheers,

Mark

             reply	other threads:[~2008-12-03 20:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-03 20:51 Mark Burton [this message]
2008-12-03 22:22 ` gitk: 'show origin of this line' barfs if gitk run in subdir Mark Burton
2008-12-06 10:56   ` Paul Mackerras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081203205158.6b4b62c7@crow \
    --to=markb@ordern.com \
    --cc=git@vger.kernel.org \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).