aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-08-02Merge branch 'barry-scott-master'Sebastian Thiel
2016-08-02refactor(cmd): streamline usage of creationflagsSebastian Thiel
2016-08-01is_dirty supports path. Fixes #482.Zaar Hai
2016-08-01fix flake8 problemsBarry Scott
2016-08-01add test to detect the corrupt logBarry Scott
- add a second line to commit messages with the "BAD MESSAGE" text - read in the log and confirm that the seond line is not in the log file
2016-08-01creationflags must be set to 0 on non-windows platformsBarry Scott
2016-08-01Must pass creationflags as a keyworkBarry Scott
2016-07-29Prevent CMD windows being shown when starting git in a subprocess.Barry Scott
This fixes a UI problem with using GitPython from a GUI python probgram. Each repo that is opened creates a git cat-file processs and that provess will create a console window with out this change.
2016-07-29Merge remote-tracking branch 'upstream/master'Barry Scott
2016-07-23Merge pull request #490 from bertwesarg/patch-1Sebastian Thiel
Add missing newline when writing a symbolic ref.
2016-07-23doc(README): remove pypi badgesSebastian Thiel
They don't seem to work anymore. [skip ci]
2016-07-23fix(diff): use explicit change-type if possibleSebastian Thiel
That way, we do not have to figure the change type out by examining the diff object. It's implemented in a way that should yield more desireable results as we keep the change-type that git is providing us with. Fixes #493
2016-07-23doc(README): remove issue statsSebastian Thiel
They do not get updated for some reason, generally the site is not quite production ready it seems, or is by now overwhelmed. [skip ci]
2016-07-19Use binary string constant for concatenation.Bert Wesarg
2016-07-19Add missing newline when writing a symbolic ref.Bert Wesarg
2016-07-18Update tutorialVincent Driessen
This mentions the instructions of what was discussed in #489.
2016-07-17fix(blame): lazily fetch full commit messageSebastian Thiel
That way, we will not only get the summary line contained in the blame, but fetch the full message. This is more costly than the previous implementation allowed it to be, but being less surprising/correct certainly is the preferred behaviour here. Fixes #485
2016-07-17chore(version): set dev versionSebastian Thiel
2016-07-17chore(version-up): v2.0.72.0.7Sebastian Thiel
2016-07-12Merge branch 'master' of https://github.com/gitpython-developers/GitPythonBarry Scott
2016-06-25Merge pull request #479 from peterbe/commit-without-executing-hooksSebastian Thiel
Commit without executing hooks, fixes #468
2016-06-21chore(tests): test-initialization via scriptSebastian Thiel
Fixes #478
2016-06-20Commit without executing hooks, fixes #468Peter Bengtsson
2016-06-20Bump for next releaseVincent Driessen
2016-06-20This is 2.0.62.0.6Vincent Driessen
2016-06-20fix(remote): lazy PushInfo.old_commit initializationSebastian Thiel
We will now populate the old_commit on demand, which will allow us to keep going even if the given commit does not exist locally. Fixes #461
2016-06-20Merge branch 'master' into fix-non-ascii-chars-in-status-linesfix-non-ascii-chars-in-status-linesSebastian Thiel
2016-06-20Merge branch 'master' into fix-non-ascii-chars-in-status-linesSebastian Thiel
2016-06-20Merge pull request #474 from gitpython-developers/keep-raw-bytes-on-diffsSebastian Thiel
Store raw path bytes in Diff instances
2016-06-20Merge pull request #475 from warsaw/issue470Sebastian Thiel
Fix issue #470
2016-06-15Fix issue #470Barry Warsaw
2016-06-14Store raw path bytes in Diff instancesVincent Driessen
Previously, the following fields on Diff instances were assumed to be passed in as unicode strings: - `a_path` - `b_path` - `rename_from` - `rename_to` However, since Git natively records paths as bytes, these may potentially not have a valid unicode representation. This patch changes the Diff instance to instead take the following equivalent fields that should be raw bytes instead: - `a_rawpath` - `b_rawpath` - `raw_rename_from` - `raw_rename_to` NOTE ON BACKWARD COMPATIBILITY: The original `a_path`, `b_path`, etc. fields are still available as properties (rather than slots). These properties now dynamically decode the raw bytes into a unicode string (performing the potentially destructive operation of replacing invalid unicode chars by "�"'s). This means that all code using Diffs should remain backward compatible. The only exception is when people would manually construct Diff instances by calling the constructor directly, in which case they should now pass in bytes rather than unicode strings. See also the discussion on https://github.com/gitpython-developers/GitPython/pull/467
2016-06-14Fix for parsing non-ASCII chars in status linesVincent Driessen
2016-06-14Python 2.6 compatVincent Driessen
2016-06-14doc(changes): inform about new APISebastian Thiel
Relates to #446
2016-06-14fix(test_docs): skip master-dependent assertionSebastian Thiel
It usually fails on branches, which doesn't help assessing PRs.
2016-06-14Merge pull request #446 from guyzmo/updating_remote_url_handlingSebastian Thiel
Adding support for git remote set-url/get-url API to Remote
2016-06-14Merge pull request #467 from ↵Sebastian Thiel
gitpython-developers/fix-dont-choke-on-invalid-unicode-paths Don't choke on (legitimately) invalidly encoded Unicode paths
2016-06-14fix(flake): misc whitespace fixesSebastian Thiel
2016-06-13fix flake8 found problemsBarry Scott
2016-06-13Fix corruption of the ref logs fileBarry Scott
It must only have the first line of the commit messages, not the while multiple line log.
2016-06-13fix(cmd): allow any kind of status messageSebastian Thiel
I see no need in verifying the status code. It's enough to just get the error.
2016-06-13doc(README): add basic contribution guidelinesSebastian Thiel
The main point is that from now on, tests are required to add new features. If the fix is minor enough, not having a test is probably alright. That distinction is not represented in the contribution guide as more tests are better - people should prefer to have a test whenever they contribute anything. My motivation to finally do this is the sad realization that I grow too unconfident about the quality of some contributions without having tests that proof they are valid. It's not enough to not break anything that exists, as the current test-suite is certainly not perfect either.
2016-06-13fix(misc): various cleanupSebastian Thiel
Just went through all changes and adjusted them to the best of my abilities. As there are no tests to claim otherwise, I believe this is correct enough. However, it becomes evident that it's no longer possible to just make changes without backing them with a respective test.
2016-06-13Merge branch 'pr-cmd-raise-with-stderr-on-error' of ↵Sebastian Thiel
https://github.com/barry-scott/GitPython into barry-scott-pr-cmd-raise-with-stderr-on-error
2016-06-13fix(repo): prevent error messages from being swallowedSebastian Thiel
This issue must have rosen from `to_progress_instance()` being inserted in a spot where `None` was a legit value. Fixes #462
2016-06-08Switching the `urls` property to use `git remote show` instead of `git ↵Guyzmo
remote get-url` `get-url` is a new API that is not widely available yet (introduced in git 2.7.0), and provokes failure on travis. Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
2016-06-08Adding support for git remote set-url/get-url API to RemoteGuyzmo
Both commands enable handling of a little known feature of git, which is to support multiple URL for one remote. You can add multiple url using the `set_url` subcommand of `git remote`. As listing them is also handy, there's a nice method to do it, using `get_url`. * adding set_url method that maps to the git remote set-url command¶ * can be used to set an URL, or replace an URL with optional positional arg¶ * can be used to add, delete URL with kwargs (matching set-url options)¶ * adding add_url, delete_url methods that wraps around set_url for conveniency¶ * adding urls property that yields an iterator over the setup urls for a remote¶ * adding a test suite that checks all use case scenarii of this added API.¶ Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
2016-06-06Don't choke on (legitimately) invalidly encoded Unicode pathsVincent Driessen
2016-06-06Can get a str object from stream.read rather then bytes.Barry Scott
Convert to the expected bytes.