You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/changes.rst
+16-3Lines changed: 16 additions & 3 deletions
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 )
Copy file name to clipboardExpand all lines: doc/source/tutorial.rst
+15Lines changed: 15 additions & 0 deletions
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::
0 commit comments