Gnus development mailing list
 help / color / mirror / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: Ted Zlatanov <tzz@lifelogs.com>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	ding@gnus.org, emacs-devel@gnu.org
Subject: Re: The Gnus repository is switching to Git as of 2010-04-19
Date: Wed, 21 Apr 2010 17:57:17 +0300	[thread overview]
Message-ID: <87tyr4etv6.fsf@mithlond.arda> (raw)
In-Reply-To: <g2q51dd1af81004210430me4765d4eq2d696cdc40ab3ab9@mail.gmail.com> (=?iso-8859-1?Q?=22=C6var_Arnfj=F6r=F0?= Bjarmason"'s message of "Wed, 21 Apr 2010 11:30:22 +0000")

* 2010-04-21 11:30 (UTC), Ævar Arnfjörð Bjarmason wrote:

> On Wed, Apr 21, 2010 at 02:59, Teemu Likonen <tlikonen@iki.fi> wrote:
                          ^^^^^

You make it look like I spent my night writing about this version
control tool. :-) Timezone issues...

>> Not quite. Git will detect renames if at least 50% of file's content
>> remains the same. So, you can also modify files quite much unless the
>> renamed-modified file is not very small.
>
> Not quite :)
>
> At a very basic level Git just doesn't care. It just snapshots content
> from one revision to the next. It really is just "A Stupid Content
> Tracker".
>
> Rename detection is all done at the higher level by the Git porcelain.
> The 50% number you cited can be changed to anything you want by giving
> the diff commands the -B$PERCENT argument. See gitdiffcore(7).

Yes, I know that, and would add that this default 50% detection
threshold is based on the smaller of the two files.

I just wanted to point out that in practice Git (the tool) really
understands renames. I have heard too many times that "in Git you must
commit a rename and content changes separately" (which is wrong) and
"Git doesn't understand renames at all" (which is very wrong, from the
point of view of the tool's user). Technical people may talk about
repository formats and different layers on top of that but I guess some
of that talk has escaped the context and I keep hearing misinformation
about Git-the-whole-system's abilities.

Anyway, thank you. Your message shares very useful information.



  reply	other threads:[~2010-04-21 14:57 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-19 17:34 Ted Zlatanov
2010-04-19 18:21 ` Sivaram Neelakantan
2010-04-19 19:13   ` Ted Zlatanov
2010-04-21  8:50     ` Steinar Bang
2010-04-21  9:01       ` David Engster
2010-04-21  9:02         ` David Engster
2010-04-21 10:05       ` Andreas Schwab
2010-04-21 12:12         ` Andreas Schwab
2010-04-21 14:10           ` Ted Zlatanov
2010-04-21 14:54             ` Andreas Schwab
2010-04-23  0:55               ` Ted Zlatanov
2010-04-22  8:12           ` Steinar Bang
2010-04-19 19:17   ` Sven Joachim
2010-04-20 13:03 ` Harry Putnam
2010-04-20 13:29   ` Ted Zlatanov
2010-04-20 13:57   ` Andreas Schwab
     [not found] ` <jwvr5mb8evr.fsf-monnier+emacs@gnu.org>
2010-04-20 13:55   ` Ted Zlatanov
2010-04-20 15:00     ` Stefan Monnier
2010-04-20 20:05       ` Ted Zlatanov
2010-04-20 22:28         ` Stefan Monnier
2010-04-20 23:44           ` Ted Zlatanov
2010-04-21  3:16             ` Stefan Monnier
2010-04-21 11:03               ` Gnus Git synchronization with Emacs Bazaar (was: The Gnus repository is switching to Git as of 2010-04-19) Ted Zlatanov
2010-04-22  2:24                 ` Stephen J. Turnbull
2010-04-21  0:33           ` The Gnus repository is switching to Git as of 2010-04-19 Stephen J. Turnbull
2010-04-21  0:51             ` Ted Zlatanov
2010-04-21  3:31               ` Stephen J. Turnbull
2010-04-21  3:11             ` Stefan Monnier
2010-04-21  4:00               ` Stephen J. Turnbull
2010-04-21  9:01           ` Andreas Schwab
2010-04-21  2:59         ` Teemu Likonen
2010-04-21 11:30           ` Ævar Arnfjörð Bjarmason
2010-04-21 14:57             ` Teemu Likonen [this message]
2010-04-21 16:36               ` Ævar Arnfjörð Bjarmason
2010-04-23  1:09         ` cgit beautification (was: The Gnus repository is switching to Git as of 2010-04-19) Ted Zlatanov
2011-02-25 22:04           ` cgit beautification Ted Zlatanov
2011-02-25 22:56             ` Adam Sjøgren
2011-02-25 23:19             ` Adam Sjøgren
2011-02-26 12:05               ` Lars Ingebrigtsen
2011-03-01 10:27               ` Ted Zlatanov
2011-03-01 10:30                 ` Ted Zlatanov
2011-03-01 11:31                   ` Adam Sjøgren
2011-03-01 13:32                     ` Ted Zlatanov
2011-03-01 17:08                       ` Adam Sjøgren
2011-03-02 11:05                         ` Ted Zlatanov
2010-04-22  5:49     ` The Gnus repository is switching to Git as of 2010-04-19 Harry Putnam
2010-04-23  0:36       ` Ted Zlatanov

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=87tyr4etv6.fsf@mithlond.arda \
    --to=tlikonen@iki.fi \
    --cc=avarab@gmail.com \
    --cc=ding@gnus.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=tzz@lifelogs.com \
    /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).