summaryrefslogtreecommitdiff
path: root/git/config.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove checks for Python 2 and/or 3Harmon2020-02-081-4/+1
|
* Remove and replace compat.FileTypeHarmon2020-02-081-2/+2
|
* Filtered out "repository" more explicitlyBen Thayer2019-10-281-1/+1
|
* Raised final ValueErrorBen Thayer2019-10-281-1/+1
|
* Changed ValueErrorBen Thayer2019-10-281-1/+1
|
* Construct GitConfigParser without Repo objectBen Thayer2019-10-281-3/+38
|
* removed Unnecessary “else” after “return”Pratik Anurag2019-10-151-2/+1
|
* Use items and items_all correctlyA. Jesse Jiryu Davis2019-01-211-19/+16
| | | | #717
* Python 3 compatibilityA. Jesse Jiryu Davis2019-01-201-1/+2
| | | | #717
* Support multiple git config values per optionA. Jesse Jiryu Davis2019-01-201-10/+129
| | | | Solves #717
* Drop support for EOL Python 2.6Hugo2018-03-181-1/+1
|
* BF: process included files before the restYaroslav Halchenko2017-11-271-1/+2
|
* Python 3.6 invalid escape sequence deprecation fixesVille Skyttä2017-04-091-1/+1
| | | | https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior
* Spelling fixesVille Skyttä2017-03-091-3/+3
|
* Merge branch 'cygwin' of https://github.com/ankostis/GitPython into ↵Sebastian Thiel2016-10-221-16/+20
|\ | | | | | | ankostis-cygwin
| * src: import os.path as ospKostis Anagnostopoulos2016-10-161-16/+20
| |
* | Fix some typosSantiago Castro2016-10-201-3/+3
|/
* src: No PyDev warningsKostis Anagnostopoulos2016-10-041-2/+2
| | | | | | | | + 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
* FIX config-lock release early regression caused by #519Kostis Anagnostopoulos2016-10-031-13/+8
| | | | + Regression introduced in d84b960982b, by a wrong comment interpretation.
* RF: use @functools.wraps within decorators instead of manual __name__ ↵Yaroslav Halchenko2016-10-021-1/+3
| | | | | | reassignment @wraps does more and does it right ;)
* cfg_TCs, #519: FIX config resource leaksKostis Anagnostopoulos2016-10-011-37/+23
| | | | | + 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
* config parsers as context mangers can now be reentered for locksRaphael Boidol2016-03-061-15/+21
|
* enable config parsers to be used as context managersRaphael Boidol2016-02-201-2/+19
| | | | if used as context managers, the parsers will automatically release their file locks.
* fix(cmd): prevent deadlock on clone/fetch/pullSebastian Thiel2016-02-071-8/+1
| | | | | | | | | | | | | | | 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
* fix(config): ignore empty values in config fileSebastian Thiel2015-09-061-6/+14
| | | | | | | | | | | 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
* fix(config): use `str.startswith('~')` instead of `'~' in str`Mihyaeru2015-07-061-1/+1
|
* fix(config): care tilde in include.path configMihyaeru2015-07-061-0/+2
|
* Added NullHandlers to all loggers to preven "No handler" messagesJames Nowell2015-06-251-0/+1
| | | | | | | | 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.
* fix(config): selective cfg write;fix cfg parserSebastian Thiel2015-04-221-1/+5
| | | | | | | | | | | * 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
* Greatly improved possible safety of Submodule.update(), which is used by ↵Sebastian Thiel2015-01-201-1/+3
| | | | | | | | | | | | 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.
* Improved unicode handling when using os.environ or GitConfigParserSebastian Thiel2015-01-191-3/+9
| | | | | | | Assured unicode values are supported when reading the configuration, and when getting author/committer information from the environment. Fixes #237
* Implemented Submodule.rename()Sebastian Thiel2015-01-191-2/+20
| | | | | | A test verifies it's truly working. Related to #238
* GitConfigParser now respects and merges 'include' sectionsSebastian Thiel2015-01-141-13/+70
| | | | | | | | | | | | | 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
* Implemented multi-line parsing of git-config to the point where a sepcific ↵Sebastian Thiel2015-01-101-38/+67
| | | | | | | | | | 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
* Make flake8 happySebastian Thiel2015-01-061-2/+2
|
* test_repo worksSebastian Thiel2015-01-061-2/+12
|
* test_index worksSebastian Thiel2015-01-061-1/+8
|
* test_commit works once againSebastian Thiel2015-01-051-1/+6
|
* Intermediate commit: test_config and test_actor worksSebastian Thiel2015-01-051-20/+22
| | | | | Kind of tackling the tasks step by step, picking low-hanging fruit first, or the ones that everyone depends on
* Dum brute force conversion of all types.Sebastian Thiel2015-01-041-4/+8
| | | | | | However, StringIO really is ByteIO in most cases, and py2.7 should run but doesn't. This should be made work first.
* initial set of adjustments to make (most) imports work.Sebastian Thiel2015-01-041-1/+5
| | | | More to come, especially when it's about strings
* Replaced ordered dict with standard version; used logging moduleSebastian Thiel2015-01-041-2/+6
| | | | All performance tests still print to stderr, but do so in a py3 compatible way
* Bumped version, updated changelog, reduced code smellSebastian Thiel2015-01-041-5/+3
| | | | | There is more work to do though, as many imports are still incorrect. Also, there are still print statements
* Applied autopep8Sebastian Thiel2014-11-191-4/+5
| | | | | Commandline was autopep8 -j 8 --max-line-length 120 --in-place --recursive --exclude "*gitdb*,*async*" git/
* pep8 linting (trailing whitespace)Antoine Musso2014-11-161-23/+23
| | | | W291 trailing whitespace
* pep8 linting (whitespace before/after)Antoine Musso2014-11-161-15/+15
| | | | | | | | | | | | | E201 whitespace after '(' E202 whitespace before ')' E203 whitespace before ':' E225 missing whitespace around operator E226 missing whitespace around arithmetic operator E227 missing whitespace around bitwise or shift operator E228 missing whitespace around modulo operator E231 missing whitespace after ',' E241 multiple spaces after ',' E251 unexpected spaces around keyword / parameter equals
* pep8 linting (blank lines expectations)Antoine Musso2014-11-161-5/+7
| | | | | | E301 expected 1 blank line, found 0 E302 expected 2 blank lines, found 1 E303 too many blank lines (n)
* pep8 linting (whitespaces)Antoine Musso2014-11-161-63/+63
| | | | | | | | | | | W191 indentation contains tabs E221 multiple spaces before operator E222 multiple spaces after operator E225 missing whitespace around operator E271 multiple spaces after keyword W292 no newline at end of file W293 blank line contains whitespace W391 blank line at end of file
* tabs to 4 spaces - this won't make integrating the patches easier, but it's ↵Sebastian Thiel2014-02-091-395/+395
| | | | probably a good idea to go a little more pep8 (and fix sins of my youth ;) )
* Greatly improved robustness of config parser - it can now take pretty much ↵Sebastian Thiel2011-06-071-3/+8
| | | | everything. Includes an updated config file which includes all the new additions