summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchipx86 <chipx86@5efc13c4-1f27-0410-8691-ff2d1f55687e>2009-08-22 10:32:12 +0000
committerchipx86 <chipx86@5efc13c4-1f27-0410-8691-ff2d1f55687e>2009-08-22 10:32:12 +0000
commit30c11fc2c6ca5c3138a5cadf28211b9bdef5e530 (patch)
tree4fde9f36d0cd03f423bb748e895c2313862c9c82
parent8b93139cac64225a56887ae5740cf74b3acecf24 (diff)
Add raw file URL support to the Repository admin page and Git.
This introduces a new column, raw_file_url, to Repository, and shows it in the admin UI for SCMTools that support it. This URL provides a way for certain SCMTools (right now, Git only) to access files over HTTP, instead of checking the file out through the SCM or accessing it locally (in the case of Git). The raw file URL acts as a URL with fields to be substituted. If <revision> exists in the URL, it will be replaced with the revision of the file. If <filename> exists, it will be replaced with the filename. This also adds a GitHub hosting service and bug tracker to the Repository admin. Using this, it's trivial to add any GitHub project without knowing the raw file URL mask. Reviewed at http://reviews.review-board.org/r/977/
-rwxr-xr-xrbtools/postreview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbtools/postreview.py b/rbtools/postreview.py
index a9c44be..9e1f1b1 100755
--- a/rbtools/postreview.py
+++ b/rbtools/postreview.py
@@ -1970,7 +1970,7 @@ class GitClient(SCMClient):
split_lines=True)
return self.make_svn_diff(parent_branch, diff_lines)
elif self.type == "git":
- return execute(["git", "diff", "--no-color",
+ return execute(["git", "diff", "--no-color", "--full-index",
parent_branch])
return None