You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2015/03/30 14:26:52 UTC
[36/45] allura git commit: [#7837] ticket:736 Add usefull diff-tree
options
[#7837] ticket:736 Add usefull diff-tree options
- `--root` to show initial commit as a big creation event
- `-t` to show tree entry itself as well as subtrees.
Commit.added_paths relies on this
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/97a93330
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/97a93330
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/97a93330
Branch: refs/heads/ib/7837
Commit: 97a93330e9a45b525a97f494733669e378bc2ec5
Parents: 403c8c4
Author: Igor Bondarenko <je...@gmail.com>
Authored: Tue Mar 3 08:03:40 2015 +0000
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Fri Mar 27 15:09:25 2015 +0000
----------------------------------------------------------------------
ForgeGit/forgegit/model/git_repo.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/97a93330/ForgeGit/forgegit/model/git_repo.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/model/git_repo.py b/ForgeGit/forgegit/model/git_repo.py
index b713cb0..ab0189e 100644
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -606,7 +606,10 @@ class GitImplementation(M.RepositoryImplementation):
'--no-commit-id',
'--name-status',
'--no-renames',
- '-r',
+ '--root',
+ # show tree entry itself as well as subtrees (Commit.added_paths
+ # relies on this)
+ '-t',
commit_id)
files = files.splitlines()
total = len(files)