From: Petr Baudis <pasky@ucw.cz>
To: Junio C Hamano <junkio@cox.net>
Cc: Linus Torvalds <torvalds@osdl.org>, git@vger.kernel.org
Subject: Re: [PATCH] Resurrect diff-tree-helper -R
Date: Sat, 14 May 2005 17:02:00 +0200 [thread overview]
Message-ID: <20050514150200.GJ3905@pasky.ji.cz> (raw)
In-Reply-To: <7vmzqy7k47.fsf@assigned-by-dhcp.cox.net>
Dear diary, on Sat, May 14, 2005 at 01:59:36AM CEST, I got a letter
where Junio C Hamano <junkio@cox.net> told me that...
> >>>>> "PB" == Petr Baudis <pasky@ucw.cz> writes:
>
> PB> Dear diary, on Sat, May 14, 2005 at 12:59:31AM CEST, I got a letter
> PB> where Junio C Hamano <junkio@cox.net> told me that...
> >> Created: t/t2000-diff.sh (mode:100755)
> >> +Mode changed: path0 (100644->100755)
>
> PB> Great, so it's even worse than before. :/
>
> Depends on the definition of "before". At the beginning, we did
> not do anything special and always said l/foo k/foo even when
> create/delete was involved. Then we did a misguided attempt to
> minimally be cg-diff compatible, which Linus complained that it
> was too distracting for human consumption. The current one is
> something in between, a lot more human side.
By "before" I meant the Linus proposal I was originally replying too.
It seems I'm still missing part of the history. :-)
> You have seen what the current "something in between" does.
> What I think is that in order not to distract human (read:
> Linus) who reads patches, they should not share the same special
> characters like "@". Which unfortunately completely contradicts
> what you are attempting to do.
I don't think it discards humans, actually. I'd rather say it makes them
aware that this is something special. And if you show it only when the
mode changes, it will always be a special thing, not only something
which clutters the view.
So I'd say it's better for humans too, since it is clear for them that
this is not part of the commit message, and it carries special meaning
for the tool they will feed it to.
> Another thing we did while you were looking other way ;-) was that we
> say mode changed only when things change, so in that sense it is
> "inconsistent" from the scripting point of view.
I have no issue with that.
> I do not think nobody uses that current textual "comment"
> information in automated tools (I do not), so changing them
> should not be a problem. How about we do something like this:
>
> 1. Invent an environment variable you can define. Let's say
> GIT_DIFF_SHOW_MODES. It could alternatively a flag you
> pass from git-diff-{files,cache,tree,tree-helper} to the
> internal diff engine but then you need to add the necessary
> command line parameter for all these commands. I can be
> persuaded in either way.
I think this completely misses the point. You are viewing what I'm
suggesting as trying to just aid Cogito's internals using cg-diff |
cg-patch, but that's actually not my major reason for doing this at all.
I view that as a hack anyway and it should eventually do a three-way
merge too at those places.
What I'm trying to do is to figure out a good encapsulation for mode
changes which can be put in *all* the patches. So when you are sending
me some new testcases, I don't have to chmod them manually. That's the
main point of doing this. I could deal with mode changes completely
separately if it was only about Cogito's internal stuff.
> BTW, what do you think about renaming git-diff-tree-helper to
> just git-diff-helper? It used to be for grokking diff-tree's
> output but now the family have the same raw output format it
> does not make much sense to keep "tree" in its name.
No issue with that.
--
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-14 15:02 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-01 0:34 [PATCH] Resurrect diff-tree-helper -R Junio C Hamano
2005-05-01 1:09 ` Linus Torvalds
2005-05-01 1:47 ` Daniel Jacobowitz
2005-05-01 5:33 ` Linus Torvalds
2005-05-01 2:22 ` Junio C Hamano
2005-05-01 5:27 ` Linus Torvalds
2005-05-01 6:22 ` Junio C Hamano
2005-05-01 7:21 ` [PATCH] Add git-apply-patch-script Junio C Hamano
2005-05-01 7:19 ` [PATCH] Rework built-in diff to make its output more dense Junio C Hamano
2005-05-13 22:45 ` [PATCH] Resurrect diff-tree-helper -R Petr Baudis
2005-05-13 22:50 ` Junio C Hamano
2005-05-13 22:59 ` Junio C Hamano
2005-05-13 23:33 ` Petr Baudis
2005-05-13 23:59 ` Junio C Hamano
2005-05-14 0:33 ` Junio C Hamano
2005-05-14 15:03 ` Petr Baudis
2005-05-14 16:27 ` Junio C Hamano
2005-05-14 23:35 ` Petr Baudis
2005-05-15 6:25 ` Junio C Hamano
2005-05-15 9:30 ` Petr Baudis
2005-05-15 18:07 ` Junio C Hamano
2005-05-15 18:10 ` [PATCH] Tweak diff output further to make it a bit less distracting Junio C Hamano
2005-05-14 15:02 ` Petr Baudis [this message]
2005-05-14 0:03 ` [PATCH] Resurrect diff-tree-helper -R Junio C Hamano
2005-05-13 23:05 ` 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=20050514150200.GJ3905@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).