You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by he...@apache.org on 2015/04/01 23:10:52 UTC
[35/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/2ae15ffb
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/2ae15ffb
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/2ae15ffb
Branch: refs/heads/hss/7072
Commit: 2ae15ffbfa7b68fdb843239293f7fc8a7b225a00
Parents: 9857cdb
Author: Igor Bondarenko <je...@gmail.com>
Authored: Tue Mar 3 08:03:40 2015 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Mon Mar 30 19:20:41 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/2ae15ffb/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)