Re: Configurable .gitignore filename?
On Mon, Mar 4, 2013 at 7:47 AM, Jari Pennanen jari.penna...@gmail.com wrote: 2013/3/4 Matthieu Moy matthieu@grenoble-inp.fr: There is already core.excludesfile, which does not replace the usual .gitignore but comes in addition. The common use is a user-wide ignore file, not a per-directory one. I'm actually aware of that. Problem is the normal .gitignore files must *not* be used in the second GIT_DIR at all, in my case it's for syncing so I need to sync almost all files (including stuff inside .gitignore), though I'd still like to retain some ignore files for second GIT_DIR, e.g. like in rsync the .rsync-filter file. How about .git/info/exclude in the 2nd GIT_DIR? Would that help? -- David -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Configurable .gitignore filename?
2013/3/5 David Aguilar dav...@gmail.com: On Mon, Mar 4, 2013 at 7:47 AM, Jari Pennanen jari.penna...@gmail.com wrote: I'm actually aware of that. Problem is the normal .gitignore files must *not* be used in the second GIT_DIR at all, in my case it's for syncing so I need to sync almost all files (including stuff inside .gitignore), though I'd still like to retain some ignore files for second GIT_DIR, e.g. like in rsync the .rsync-filter file. How about .git/info/exclude in the 2nd GIT_DIR? Would that help? The second GIT_DIR must not use the .gitignore files of the first GIT_DIR, so it does not help. Only way to skip the .gitignore files in git-add is to use git add -f . but that skips all excludes, including the .git/info/exclude. I need to skip .gitignore files used by the other GIT_DIR and still have some of ignore rules, IMO this is not possible at the moment. -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Configurable .gitignore filename?
Jari Pennanen jari.penna...@gmail.com writes: If project or directory belongs to more than one GIT_DIR then some of the GIT_DIR's may need a different .gitignore files, it would be useful if one could define it independently, e.g. in GIT_DIR/config: [core] ignorefilename = .gitalternateignore There is already core.excludesfile, which does not replace the usual .gitignore but comes in addition. The common use is a user-wide ignore file, not a per-directory one. -- Matthieu Moy http://www-verimag.imag.fr/~moy/ -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Configurable .gitignore filename?
2013/3/4 Matthieu Moy matthieu@grenoble-inp.fr: There is already core.excludesfile, which does not replace the usual .gitignore but comes in addition. The common use is a user-wide ignore file, not a per-directory one. I'm actually aware of that. Problem is the normal .gitignore files must *not* be used in the second GIT_DIR at all, in my case it's for syncing so I need to sync almost all files (including stuff inside .gitignore), though I'd still like to retain some ignore files for second GIT_DIR, e.g. like in rsync the .rsync-filter file. -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html