All of lore.kernel.org
 help / color / mirror / Atom feed
* Creating diffs
@ 2006-08-03 12:29 Rocco Rutte
  2006-08-03 12:39 ` Jakub Narebski
  2006-08-03 18:22 ` Junio C Hamano
  0 siblings, 2 replies; 6+ messages in thread
From: Rocco Rutte @ 2006-08-03 12:29 UTC (permalink / raw)
  To: git

Hi,

when creating a diff between two branches, one particular file needs a 
manually created/modified diff (the file contains just 1 line). As I 
cannot exclude files from the diff and create the missing one manually, 
I tried using the opposite approach: include all wanted.

However, when I do:

   $ git diff source:file dest:file

I get:

   --- a/source:file
   +++ b/source:file

But I'd like to drop the branchname. Can I do that without filtering 
everything through sed(1)?

Also, I think the diffs are reversed:

   $ git diff master:builtin-rm.c appname:builtin-rm.c
   diff --git a/master:builtin-rm.c b/master:builtin-rm.c
   index 735f3db..92d205a 100644
   --- a/master:builtin-rm.c
   +++ b/master:builtin-rm.c
   @@ -50,7 +50,6 @@ int cmd_rm(int argc, const char **argv, 
           const char **pathspec;
           char *seen;
   
   -       git_set_appname("git-rm");
           git_config(git_default_config);
   
           newfd = hold_lock_file_for_update(&lock_file, get_index_file());

since the appname branch contains the change while master doesn't.

Git version is 1.4.2.rc2 but both "bugs" happen with unpatched 1.3, too.

   bye, Rocco
-- 
:wq!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-03 18:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-03 12:29 Creating diffs Rocco Rutte
2006-08-03 12:39 ` Jakub Narebski
2006-08-03 14:47   ` Jakub Narebski
2006-08-03 14:58     ` Rocco Rutte
2006-08-03 18:45   ` Junio C Hamano
2006-08-03 18:22 ` Junio C Hamano

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.