aboutsummaryrefslogtreecommitdiff
path: root/git/config.py
AgeCommit message (Collapse)Author
2020-09-03Ensure that detached HEAD does not raise when comparing branch name.Jeremy Retailleau
2020-09-03Reformat code to remove unnecessary indentationJeremy Retailleau
2020-09-02Add missing blank lineJeremy Retailleau
2020-09-02Add missing rules to match hierarchy pathJeremy Retailleau
2020-09-02Fix logic to properly compare glob pattern to valueJeremy Retailleau
2020-09-02Add method to retrieve all possible paths to includeJeremy Retailleau
2020-09-02Add reference to repository to config.Jeremy Retailleau
This is necessary when working with conditional include sections as it requires the git directory or active branch name. https://git-scm.com/docs/git-config#_conditional_includes
2020-09-02Update check method to find all includesJeremy Retailleau
2020-09-02Add Regex to match content of "includeIf" sectionJeremy Retailleau
2020-02-08Remove attempt to import ConfigParser for Python 2Harmon
2020-02-08Remove and replace compat.string_typesHarmon
2020-02-08Remove checks for Python 2 and/or 3Harmon
2020-02-08Remove and replace compat.FileTypeHarmon
2019-10-28Filtered out "repository" more explicitlyBen Thayer
2019-10-28Raised final ValueErrorBen Thayer
2019-10-28Changed ValueErrorBen Thayer
2019-10-28Construct GitConfigParser without Repo objectBen Thayer
2019-10-15removed Unnecessary “else” after “return”Pratik Anurag
2019-01-21Use items and items_all correctlyA. Jesse Jiryu Davis
#717
2019-01-20Python 3 compatibilityA. Jesse Jiryu Davis
#717
2019-01-20Support multiple git config values per optionA. Jesse Jiryu Davis
Solves #717
2018-03-18Drop support for EOL Python 2.6Hugo
2017-11-27BF: process included files before the restYaroslav Halchenko
2017-04-09Python 3.6 invalid escape sequence deprecation fixesVille Skyttä
https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
2017-03-09Spelling fixesVille Skyttä
2016-10-22Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵Sebastian Thiel
ankostis-cygwin
2016-10-20Fix some typosSantiago Castro
2016-10-16src: import os.path as ospKostis Anagnostopoulos
2016-10-04src: No PyDev warningsKostis Anagnostopoulos
+ Mark all unused vars and other non-pep8 (PyDev) warnings + test_utils: + enable & fix forgotten IterableList looped path. + unittestize all assertions. + remote: minor fix progress dispatching unknown err-lines
2016-10-03FIX config-lock release early regression caused by #519Kostis Anagnostopoulos
+ Regression introduced in d84b960982b, by a wrong comment interpretation.
2016-10-02RF: use @functools.wraps within decorators instead of manual __name__ ↵Yaroslav Halchenko
reassignment @wraps does more and does it right ;)
2016-10-01cfg_TCs, #519: FIX config resource leaksKostis Anagnostopoulos
+ Modify lock/read-config-file code to ansure files closed + Use `with GitConfigarser()` more systematically in TCs. + Clear any locks left hanging from pev Tcs
2016-03-06config parsers as context mangers can now be reentered for locksRaphael Boidol
2016-02-20enable config parsers to be used as context managersRaphael Boidol
if used as context managers, the parsers will automatically release their file locks.
2016-02-07fix(cmd): prevent deadlock on clone/fetch/pullSebastian Thiel
We keep stdout closed, which seems to have the side-effect of stdout being connected to your TTY, in case you run a terminal. However, this shold also prevent deadlocks, as only stderr is used. The alternative would have been to try to fetch lines concurrently, and we have been there. For clone(), `communicate()` is used, and with some luck this will just do the right thing. Even though last time I checked, it didn't ... ? Lets see. Stab at #72
2015-09-06fix(config): ignore empty values in config fileSebastian Thiel
Similar to git, we now ignore options which have no value. Previously it would not handle it consistently, and throw a parsing error the first time the cache was built. Afterwards, it was fully usable though. Now we specifically check for the case of no-value options instead. Closes #349
2015-07-06fix(config): use `str.startswith('~')` instead of `'~' in str`Mihyaeru
2015-07-06fix(config): care tilde in include.path configMihyaeru
2015-06-25Added NullHandlers to all loggers to preven "No handler" messagesJames Nowell
When the code is run without setting up loggers, the loggers have no handlers for the emitted messages. The logging module displays: `No handlers could be found for logger "git.cmd"` on the console. By adding a NullHandler (a no-op) the message disappears, and doesn't affect logging when other handlers are configured.
2015-04-22fix(config): selective cfg write;fix cfg parserSebastian Thiel
* config parser now handles quoted values correctly. This doesn't hamper multi-line support. * added regression test to travis to assure we will be warned if we rewrite and break the user's .gitconfig file * only rewrite configuration files if we actually called a mutating method on the writer. Previously it would always rewrite it. Fixes #285
2015-01-20Greatly improved possible safety of Submodule.update(), which is used by ↵Sebastian Thiel
default. Previously, the implementation would gladly reset new commits in submodules, and/or reset a dirty working tree. Now the new force_reset/force flag has to be specified explicitly to get back to the old behaviour. All submodule tests except for one are working.
2015-01-19Improved unicode handling when using os.environ or GitConfigParserSebastian Thiel
Assured unicode values are supported when reading the configuration, and when getting author/committer information from the environment. Fixes #237
2015-01-19Implemented Submodule.rename()Sebastian Thiel
A test verifies it's truly working. Related to #238
2015-01-14GitConfigParser now respects and merges 'include' sectionsSebastian Thiel
We implement it as described in this article: http://stackoverflow.com/questions/1557183/is-it-possible-to-include-a-file-in-your-gitconfig Thus we handle * cycles * relative and absolute include paths * write-backs in case of writable GitConfigParser instances Fixes #201
2015-01-10Implemented multi-line parsing of git-config to the point where a sepcific ↵Sebastian Thiel
test-file is working. This brings us much closer to what git can do, and should at least prevent errors while reading configuration files (which would break a lot of features, like handling of remotes since these rely reading configuration files). Fixes #112
2015-01-06Make flake8 happySebastian Thiel
2015-01-06test_repo worksSebastian Thiel
2015-01-06test_index worksSebastian Thiel
2015-01-05test_commit works once againSebastian Thiel
2015-01-05Intermediate commit: test_config and test_actor worksSebastian Thiel
Kind of tackling the tasks step by step, picking low-hanging fruit first, or the ones that everyone depends on