allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject [35/45] allura git commit: [#7837] ticket:736 Add usefull diff-tree options
Date Wed, 01 Apr 2015 21:10:52 GMT
[#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 <jetmind2@gmail.com>
Authored: Tue Mar 3 08:03:40 2015 +0000
Committer: Dave Brondsema <dbrondsema@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)


Mime
View raw message