4 ms·
All this wouldn't be necessary if git supported traversing through parent directories for a configuration lookup to have "per directory structure" configuration
by eliaspro 7y ago
All this wouldn't be necessary if git supported traversing through parent directories for a configuration lookup to have "per directory structure" configurations.
Any idea, why this relatively simple and inexpensive approach isn't implemented? Simply because no one bothered to do it so far?
- bobwaycott 7y agoYou mean like a sibling commenter posted here? https://news.ycombinator.com/item?id=22672682 https://news.ycombinator.com/item?id=22672682
- saagarjha 7y ago> All this wouldn't be necessary if git supported traversing through parent directories for a configuration lookup to have "per directory structure" configurations. Clang-format has this “delightful” feature, which isn’t actually all that horrible except I cannot find a way to pass it a configuration file via the command line. If I’m editing files in /tmp (or using an editor that relies on this directory) I have to do a nasty hack of copying ~/.clang-format to the current directory to make it work: https://github.com/saagarjha/dotfiles/blob/master/_nano-clang-format https://github.com/saagarjha/dotfiles/blob/master/_nano-clan.... Basically, this is a long-winded way of saying that this kind of setting can often work but it’s really not great in certain situations.