projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
33f684c
)
GitRepo.vala
author
Alan Knowles
<alan@roojs.com>
Fri, 28 Dec 2018 07:11:25 +0000
(15:11 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 28 Dec 2018 07:11:25 +0000
(15:11 +0800)
GitRepo.vala
patch
|
blob
|
history
diff --git
a/GitRepo.vala
b/GitRepo.vala
index
522e58a
..
ea4e3e3
100644
(file)
--- a/
GitRepo.vala
+++ b/
GitRepo.vala
@@
-602,7
+602,7
@@
public class GitRepo : Object
var lines = this.git({"log", "master...", "--pretty=format:\"%H %P\"" }).split("\n");;
var head = this.git({"log", "-1", "--pretty=format:\"%H %P\"" });
start = head.split(" ")[0];
var lines = this.git({"log", "master...", "--pretty=format:\"%H %P\"" }).split("\n");;
var head = this.git({"log", "-1", "--pretty=format:\"%H %P\"" });
start = head.split(" ")[0];
- var
start
= "";
+ var
end
= "";
for (var i = 0; i < lines.length; i++) {
var cols = lines[i].split(" ");
if (cols.length > 2) {
for (var i = 0; i < lines.length; i++) {
var cols = lines[i].split(" ");
if (cols.length > 2) {
@@
-612,7
+612,7
@@
public class GitRepo : Object
}
if (end == "") {
var last = lines[lines.length-1];
}
if (end == "") {
var last = lines[lines.length-1];
- var end = last.split(" ")[1];
+ end = last.split(" ")[1];
}
return this.git({ "diff" , start+".."+end, "--no-color" });
}
return this.git({ "diff" , start+".."+end, "--no-color" });