diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2015-04-22 08:51:29 +0200 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2015-04-22 08:56:18 +0200 |
| commit | b9a2ea80aa9970bbd625da4c986d29a36c405629 (patch) | |
| tree | 6028c31e0722e76d9a4623cc6a305776860fb5af /git/test/fixtures | |
| parent | e39c8b07d1c98ddf267fbc69649ecbbe043de0fd (diff) | |
| download | GitPython-b9a2ea80aa9970bbd625da4c986d29a36c405629.tar.gz GitPython-b9a2ea80aa9970bbd625da4c986d29a36c405629.zip | |
fix(config): selective cfg write;fix cfg parser
* 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
Diffstat (limited to 'git/test/fixtures')
| -rw-r--r-- | git/test/fixtures/.gitconfig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git/test/fixtures/.gitconfig b/git/test/fixtures/.gitconfig new file mode 100644 index 00000000..6a0459f6 --- /dev/null +++ b/git/test/fixtures/.gitconfig @@ -0,0 +1,3 @@ +[alias] + rbi = "!g() { git rebase -i origin/${1:-master} ; } ; g" + expush = "!f() { git branch -f tmp ; { git rbi $1 && git push ; } ; git reset --hard tmp ; git rebase origin/${1:-master}; } ; f"
\ No newline at end of file |
