git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/2] Introduce rename factorization in diffcore.

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 7, 2008, 12:55 UTC
Message-ID
<m3vduzelwt.fsf@localhost.localdomain>
In-Reply-To
<2faad3050811070328t31babed4v1ba895a6ac36df94@mail.gmail.com>
Baz <brian.ewins@gmail.com> writes:
> 2008/10/30 Yann Dirson <ydirson@altern.org>:
Show 8 quoted lines
> > Rename factorization tries to group together files moving from and to
> > identical directories - the most common case being directory renames.
> > This feature is activated by the new --factorize-renames diffcore
> > flag.
> 
> Sorry to bikeshed a bit here, but this isn't what 'factorize' means,
> and adding a flag with this name unnecessarily adds to the
> git-specific terms users have to learn.

Well, I think from _mathematical_ (arithmetic) point of view it makes perfect sense. Before you had:

  (rename-of-sub1-file1 rename-of-sub1-file2 rename-of-sub1-file3)
and after you have
  (rename-of-sub1) * (changes in files)
 
Show 9 quoted lines
> Looking back through the archives, there's only a few people who've
> used the word 'factorize', and /mostly/ it seems to have been used as
> a synonym for 'refactor' in comments; not common usage but
> understandable. However in this case, factorize is being used in the
> opposite sense from its dictionary definition - to break down into
> factors - and instead is being used to mean to /combine/ things; I
> don't think that should be in the UI.
> 
> Why not just '--group-renames'?

That said, I think that '--group-renames' makes better sense (and is shorted than '--detect-directory-renames')

+1 for '--group-renames'
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: BazNext: Nguyen Thai Ngoc Duy
Message 4 of 7 in “Detection of directory renames”
  1. 0/2 Detection of directory renamesYann Dirson, Oct 30, 2008
  2. 1/2 Introduce rename factorization in diffcore.Yann Dirson, Oct 30, 2008
  3. BazNov 7, 2008
  4. Jakub NarebskiNov 7, 2008
  5. Nguyen Thai Ngoc DuyNov 8, 2008
  6. Nguyen Thai Ngoc DuyNov 8, 2008
  7. 2/2 Add testcases for the --factorize-renames diffcore flag.Yann Dirson, Oct 30, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.