All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabrice Creuzot <code@luigifab.fr>
To: git@vger.kernel.org
Subject: git a/xyz or b/xyz
Date: Sat, 18 Jun 2022 12:45:30 +0200	[thread overview]
Message-ID: <b4f40821-8592-1a35-8b60-219fd7e29e9f@luigifab.fr> (raw)

Hello

When we are reading a "git diff", all paths are prefixed with "a/" and 
"b/". Example:

diff --git a/xyz
index 4aa4b5230..1c2b8b69e 100644
--- a/xyz
+++ b/xyz
@@ -1,7 +1,7 @@


With my terminal, I double click on the path to select the full path for 
copy.

Then, when I paste: "git log a/xyz",
  git says: unknown revision or path not in the working tree

Ok, I need to remove the "a/" or "b/".
But, is git can understand that "a/xyz" is "xyz" because "a/xyz" does 
not exist?

Thanks

             reply	other threads:[~2022-06-18 10:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-18 10:45 Fabrice Creuzot [this message]
2022-06-18 11:09 ` git a/xyz or b/xyz Shaoxuan Yuan
2022-06-18 11:15   ` Shaoxuan Yuan
2022-06-20 11:12 ` Konstantin Khomoutov
2022-06-24 15:58   ` Fabrice Creuzot

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=b4f40821-8592-1a35-8b60-219fd7e29e9f@luigifab.fr \
    --to=code@luigifab.fr \
    --cc=git@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.