Re: [PATCH v4 0/5] Patches to avoid reporting conversion changes.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Henrik Grubbström
Date: Tuesday, June 8, 2010 - 8:52 am

On Mon, 7 Jun 2010, Finn Arne Gangstad wrote:


True, there's no problem before the attribute change, but there is 
for commits between the attribute change and when the repository got 
normalized (which can be a while with the current git).

Re: configuration option naming:

   I've settled for core.normalizationPolicy, with the values
   'strict' (default) for the behaviour requested by you and Jonathan,
   and 'relaxed' for my initial behaviour.

Teaser:

   $ git init foo
   warning: templates not found /home/grubba/share/git-core/templates
   Initialized empty Git repository in /tmp/grubba/foo/.git/
   $ cd foo
   $ cat >expanded-keywords
   $Id: some id string $
   $ git add expanded-keywords
   $ git commit -m 'Initial commit.'
   [master (root-commit) 755d1f6] Initial commit.
    1 files changed, 1 insertions(+), 0 deletions(-)
    create mode 100644 expanded-keywords
   $ git status
   # On branch master
   nothing to commit (working directory clean)
   $ cat >.gitattributes
   * ident
   $ git status
   # On branch master
   # Changed but not updated:
   #   (use "git add <file>..." to update what will be committed)
   #   (use "git checkout -- <file>..." to discard changes in working directory)
   #
   #       modified:   expanded-keywords
   #
   # Untracked files:
   #   (use "git add <file>..." to include in what will be committed)
   #
   #       .gitattributes
   no changes added to commit (use "git add" and/or "git commit -a")
   $ git config core.normalizationPolicy relaxed
   $ git status
   # On branch master
   # Untracked files:
   #   (use "git add <file>..." to include in what will be committed)
   #
   #       .gitattributes
   nothing added to commit but untracked files present (use "git add" to track)
   $ git config core.normalizationPolicy strict
   $ git status
   # On branch master
   # Changed but not updated:
   #   (use "git add <file>..." to update what will be committed)
   #   (use "git checkout -- <file>..." to discard changes in working directory)
   #
   #       modified:   expanded-keywords
   #
   # Untracked files:
   #   (use "git add <file>..." to include in what will be committed)
   #
   #       .gitattributes
   no changes added to commit (use "git add" and/or "git commit -a")
   $ rm .gitattributes
   $ git status
   # On branch master
   nothing to commit (working directory clean)

Which I believe matches all the behaviours that have been requested.

--
Henrik Grubbström					grubba@grubba.org
Roxen Internet Software AB				grubba@roxen.com
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v4 0/5] Patches to avoid reporting conversion changes., =?UTF-8?q?Henrik=20G ..., (Tue Jun 1, 7:41 am)
[PATCH v4 1/5] sha1_file: Add index_blob()., =?UTF-8?q?Henrik=20G ..., (Tue Jun 1, 7:41 am)
[PATCH v4 2/5] strbuf: Add strbuf_add_uint32()., =?UTF-8?q?Henrik=20G ..., (Tue Jun 1, 7:41 am)
[PATCH v4 3/5] cache: Keep track of conversion mode changes., =?UTF-8?q?Henrik=20G ..., (Tue Jun 1, 7:41 am)
[PATCH v4 4/5] cache: Add index extension &quot;CONV&quot;., =?UTF-8?q?Henrik=20G ..., (Tue Jun 1, 7:41 am)
[PATCH v4 5/5] t/t0021: Test that conversion changes are d ..., =?UTF-8?q?Henrik=20G ..., (Tue Jun 1, 7:41 am)
Re: [PATCH v4 0/5] Patches to avoid reporting conversion c ..., Henrik Grubbström, (Thu Jun 3, 9:00 am)
Re: [PATCH v4 0/5] Patches to avoid reporting conversion c ..., Henrik Grubbström, (Fri Jun 4, 4:59 am)
Re: [PATCH v4 0/5] Patches to avoid reporting conversion c ..., Henrik Grubbström, (Sun Jun 6, 3:50 am)
Re: [PATCH v4 0/5] Patches to avoid reporting conversion c ..., Finn Arne Gangstad, (Mon Jun 7, 1:59 am)
Re: [PATCH v4 0/5] Patches to avoid reporting conversion c ..., Henrik Grubbström, (Mon Jun 7, 9:37 am)
Re: [PATCH v4 0/5] Patches to avoid reporting conversion c ..., Finn Arne Gangstad, (Mon Jun 7, 12:50 pm)
Re: [PATCH v4 0/5] Patches to avoid reporting conversion c ..., Henrik Grubbström, (Tue Jun 8, 8:52 am)
Re: [PATCH v4 0/5] Patches to avoid reporting conversion c ..., Finn Arne Gangstad, (Wed Jun 9, 7:03 am)
Re: [PATCH v4 0/5] Patches to avoid reporting conversion c ..., Henrik Grubbström, (Wed Jun 9, 11:04 am)
Re: [PATCH v4 0/5] Patches to avoid reporting conversion c ..., Finn Arne Gangstad, (Thu Jun 10, 12:55 pm)