| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,11 +2,24 @@ | |||
| 2 | 2 | Changelog | |
| 3 | 3 | ========= | |
| 4 | 4 | ||
| 5 | - NEXT | ||
| 6 | - ==== | ||
| 7 | - * Blob Type | ||
| 5 | + 0.3.1 | ||
| 6 | + ===== | ||
| 7 | + * **git** command wrapper | ||
| 8 | + | ||
| 9 | + * Added ``version_info`` property which returns a tuple of integers representing the installed git version. | ||
| 10 | + | ||
| 11 | + * **Blob** Type | ||
| 12 | + | ||
| 8 | 13 | * Added mode constants to ease the manual creation of blobs | |
| 9 | 14 | ||
| 15 | + * **More Changes** | ||
| 16 | + | ||
| 17 | + * Configuration file parsing is more robust. It should now be able to handle everything that the git command can parse as well. | ||
| 18 | + * The progress parsing was updated to support git 1.7.0.3 and newer. Previously progress was not enabled for the git command or only worked with ssh in case of older git versions. | ||
| 19 | + * Parsing of tags was improved. Previously some parts of the name could not be parsed properly. | ||
| 20 | + * The rev-parse pure python implementation now handles branches correctly if they look like hexadecimal sha's. | ||
| 21 | + | ||
| 22 | + | ||
| 10 | 23 | 0.3.1 Beta 2 | |
| 11 | 24 | ============ | |
| 12 | 25 | * Added **reflog support** ( reading and writing ) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -385,6 +385,21 @@ The item returned is a DiffIndex which is essentially a list of Diff objects. It | |||
| 385 | 385 | ||
| 386 | 386 | for diff_added in wdiff.iter_change_type('A'): do_something_with(diff_added) | |
| 387 | 387 | ||
| 388 | + Use the diff framework if you want to implement git-status like functionality. | ||
| 389 | + | ||
| 390 | + * A diff between the index and the commit's tree your HEAD points to | ||
| 391 | + | ||
| 392 | + * use repo.index.diff(repo.head) | ||
| 393 | + | ||
| 394 | + * A diff between the index and the working tree | ||
| 395 | + | ||
| 396 | + * use repo.index.diff(None) | ||
| 397 | + | ||
| 398 | + * A list of untracked files | ||
| 399 | + | ||
| 400 | + * use repo.untracked_files | ||
| 401 | + | ||
| 402 | + | ||
| 388 | 403 | Switching Branches | |
| 389 | 404 | ****************** | |
| 390 | 405 | To switch between branches, you effectively need to point your HEAD to the new branch head and reset your index and working copy to match. A simple manual way to do it is the following one:: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -237,7 +237,8 @@ def working_dir(self): | |||
| 237 | 237 | ||
| 238 | 238 | @property | |
| 239 | 239 | def version_info(self): | |
| 240 | - """:return: tuple(int, ...) tuple with integers representing the major, minor | ||
| 240 | + """ | ||
| 241 | + :return: tuple(int, ...) tuple with integers representing the major, minor | ||
| 241 | 242 | and additional version numbers as parsed from git version. | |
| 242 | 243 | This value is generated on demand and is cached""" | |
| 243 | 244 | return self._version_info | |
| Back | FazBrowse Home | New Git URL |
0 commit comments