{"thread":{"id":"23304","subject":"How to to override repository-specific attributes in.git/config?","startedAt":"2010-04-02T17:30:02Z","lastAt":"2010-04-02T17:30:02Z","messageCount":1,"participants":["roylee17"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"138442","messageId":"1270229402991-4843642.post@n2.nabble.com","threadId":"23304","inReplyTo":null,"subject":"How to to override repository-specific attributes in.git/config?","fromName":"roylee17","fromEmail":"roylee17@gmail.com","sentAt":"2010-04-02T17:30:02Z","receivedAt":"2010-04-02T17:30:02Z","isPatch":false,"sender":{"key":"roylee17@gmail.com","avatar":null},"body":"\nHi,\n\nDo we currently have a native way to override attributes specified in the\nrepository-specific .git/config ?\n\nWhile working with a large project which is composed by multiple\nrepositories, from time to time, I'd like to override *some* attributes\nwithout modifying each of the repository-specific config files.\n\nFor example, when such a project was copied or moved from a window file\nsystem, all files got filemode changed. Even worse, their are many\nuncommitted changes! In this case, I'd like to filter out the filemode\nchanges(with core.filemode=false) when review the uncommitted changes. Since\nthe core.filemode attribute was specified in the repository-specific config,\nmodifying the ~/.gitconfig does not help.\n\nThe aforementioned situation is not the only case that I'd like to have such\nfunction. Do we currently have a native way to solve this? For example, to\nprovide an extra config file via environment variable or directly feed the\nattributes via environment variable to override only *some* but not *all* of\nattributes specified in the repository-specific config.\n\nI found this thread \"Introduce the GIT_CONFIG_EXTRA environment variable\"\ninitiated by Miklos Vajna, did provide a solution to my problem, which is\ncomplete different use case though. :-) So I initiate another thread to\ndiscuss the use case here.\n\nThanks.\n\nRoy\n-- \nView this message in context: http://n2.nabble.com/How-to-to-override-repository-specific-attributes-in-git-config-tp4843642p4843642.html\nSent from the git mailing list archive at Nabble.com.\n"}]}