On Wed, Sep 05, 2007 at 01:14:44 -0700, Junio C Hamano wrote:Yes, they should: $ git checkout $ edit .gitattributes $ edit file $ git add file $ git commit ;# this does NOT have the changes to .gitattributes the above case is a user error that can (at some cost) be detected: $ git checkout $ edit .gitattributes $ edit file $ git add file $ git add .gitattributes Warning! Changes to gitattributes affects handling of files scheduled for commit. Please add following files again before commit: file $ It would be possible to special-case .gitattributes in add to: - do diff between the old and new value of .gitattributes in index, - list files changed in index compared to HEAD, - match each of them to all patterns in the diff, - if any matches, print the warning and list of matches. It might be even possible to actually inspect the changes and apply those that can be automatically (and not ask user to re-add), but some filters loose information, so user interaction is needed to add good version. --=20 Jan 'Bulb' Hudec <bulb@ucw.cz>
| Andrew Morton | -mm merge plans for 2.6.23 |
| jjohansen | [AppArmor 39/45] AppArmor: Profile loading and manipulation, pathname matching |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| holzheu | Re: [RFC/PATCH] Documentation of kernel messages |
git: | |
| David Miller | Re: [BUG] New Kernel Bugs |
| Gerrit Renker | [PATCH 36/37] dccp: Initialisation and type-checking of feature sysctls |
| David Miller | [GIT]: Networking |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
