From: Petr Baudis <pasky@ucw.cz>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Junio C Hamano <junkio@cox.net>, git@vger.kernel.org
Subject: Re: [PATCH 2/4] Tweak diff output further to make it a bit less distracting.
Date: Tue, 17 May 2005 09:01:58 +0200 [thread overview]
Message-ID: <20050517070158.GA10031@pasky.ji.cz> (raw)
In-Reply-To: <Pine.LNX.4.58.0505161556260.18337@ppc970.osdl.org>
Dear diary, on Tue, May 17, 2005 at 01:28:31AM CEST, I got a letter
where Linus Torvalds <torvalds@osdl.org> told me that...
>
>
> On Mon, 16 May 2005, Junio C Hamano wrote:
>
> > # mode: 100644 100755 nitfol
> > --- a/nitfol
> > +++ b/nitfol
>
> > @. 100644 100755 nitfol
> > --- a/nitfol
> > +++ b/nitfol
>
> I have to say, I muct prefer the first over the second.
Glad. :-)
> One final note: I actually think that "rename patches" make a ton of
> sense, even if git itself doesn't track renames. If we ever have a "smart
> diff" thing that can generate inter-file diffs, I'd like to eventually see
>
> diff -git a/kernel/sched.c b/kernel/sched.c.old
> rename kernel/sched.c kernel/sched.c.old
> old mode 100644
> new mode 100755
> --- a/kernel/sched.c
> +++ b/kernel/sched.c.old
> @@ -1,5 +1,5 @@
> /*
> - * kernel/sched.c
> + * kernel/sched.c.old
> *
> * Kernel scheduler and related syscalls
> *
>
> Notice? We could have a mode change, a rename _and_ a content change, all
> at the same time under the same header. That's obviously a totally idiotic
> example, but the point is that if we have a nice "extended diff header"
> setup, the format is very easily able to accomodate things like this.
Actually, if the git diff format is fixed, do we even need the explicit
rename line? It could be enough if the filenames on the diff line would
be just different. Or you want it because of clarity?
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
next prev parent reply other threads:[~2005-05-17 7:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-15 21:19 [PATCH 2/4] Tweak diff output further to make it a bit less distracting Junio C Hamano
2005-05-16 22:05 ` Petr Baudis
2005-05-16 22:51 ` Junio C Hamano
2005-05-16 23:28 ` Linus Torvalds
2005-05-16 23:44 ` Junio C Hamano
2005-05-18 13:40 ` Matthias Urlichs
2005-05-18 15:20 ` Linus Torvalds
2005-05-18 16:07 ` Matthias Urlichs
2005-05-18 16:10 ` [PATCH] Fix diff output take #4 Junio C Hamano
2005-05-17 0:10 ` [PATCH 2/4] Tweak diff output further to make it a bit less distracting Daniel Barkalow
2005-05-17 21:11 ` Petr Baudis
2005-05-17 21:19 ` Junio C Hamano
2005-05-17 0:11 ` [PATCH] Fix diff output take #3 Junio C Hamano
2005-05-17 7:01 ` Petr Baudis [this message]
2005-05-17 15:20 ` [PATCH 2/4] Tweak diff output further to make it a bit less distracting Linus Torvalds
2005-05-17 19:08 ` Junio C Hamano
2005-05-17 19:32 ` Linus Torvalds
2005-05-17 22:25 ` Junio C Hamano
2005-05-17 23:32 ` Linus Torvalds
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=20050517070158.GA10031@pasky.ji.cz \
--to=pasky@ucw.cz \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=torvalds@osdl.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).