From: "Marco Costalba" <mcostalba@gmail.com>
To: git@vger.kernel.org
Subject: [RFC] Enable 'check for copy and renames' (-C) also when path filtering
Date: Wed, 16 Aug 2006 11:06:49 +0200 [thread overview]
Message-ID: <e5bfff550608160206w606008ddv2da42ce49e98fa2b@mail.gmail.com> (raw)
It seems that -C option of git-diff-tree it works only if the whole
changeset is retrieved.
>From git repository:
- Ask for all
$git diff-tree -r -p -C 5d4a600
5d4a60033543e063bc9d77ca957de0187fb58fb3
diff --git a/Makefile b/Makefile
index 132c9cf..4fd62bc 100644
--- a/Makefile
+++ b/Makefile
@@ -177,7 +177,7 @@ PROGRAMS = \
git-convert-objects$X git-fetch-pack$X git-fsck-objects$X \
----cut----
diff --git a/pack-objects.c b/builtin-pack-objects.c
similarity index 100% <------- similarity and
rename from pack-objects.c <-------- rename info shown
rename to builtin-pack-objects.c <-------- only in this case
index 861c7f0..2301cd5 100644
--- a/pack-objects.c
+++ b/builtin-pack-objects.c
@@ -1,3 +1,4 @@
+#include "builtin.h"
#include "cache.h"
- Ask for pack-objects.c only
$git diff-tree -r -p -C 5d4a600 -- pack-objects.c
5d4a60033543e063bc9d77ca957de0187fb58fb3
diff --git a/pack-objects.c b/pack-objects.c
deleted file mode 100644
index 861c7f0..0000000
--- a/pack-objects.c
+++ /dev/null
@@ -1,1376 +0,0 @@
-#include "cache.h"
-#include "object.h"
- Ask for builtin-pack-objects.conly
$git diff-tree -r -p -C 5d4a600 -- builtin-pack-objects.c
5d4a60033543e063bc9d77ca957de0187fb58fb3
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
new file mode 100644
index 0000000..2301cd5
--- /dev/null
+++ b/builtin-pack-objects.c
@@ -0,0 +1,1376 @@
+#include "builtin.h"
+#include "cache.h"
+#include "object.h"
Showing rename info also when filtering on a specified path could be
useful to retrieve a single file history following renames.
Thanks
Marco
next reply other threads:[~2006-08-16 9:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-16 9:06 Marco Costalba [this message]
2006-08-16 17:51 ` [RFC] Enable 'check for copy and renames' (-C) also when path filtering Junio C Hamano
2006-08-16 20:49 ` Marco Costalba
2006-08-16 21:11 ` Junio C Hamano
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=e5bfff550608160206w606008ddv2da42ce49e98fa2b@mail.gmail.com \
--to=mcostalba@gmail.com \
--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 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).