mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-08 01:26:47 +01:00
Add clickable git diff data if indexer has it
This commit is contained in:
@@ -159,6 +159,21 @@ var ICEcoder = {
|
||||
if (data.timestamps.changed) {
|
||||
top.ICEcoder.indexData = data;
|
||||
}
|
||||
// If we have git diff data
|
||||
if (data.git) {
|
||||
top.ICEcoder.indexData.git = data.git;
|
||||
var gitContent = "";
|
||||
for (var i=0; i<top.ICEcoder.indexData.git.paths.length; i++) {
|
||||
gitContent +=
|
||||
'<div style="font-family: monospace" onclick="top.ICEcoder.openFile(\'/' +
|
||||
top.ICEcoder.indexData.git.paths[i] +
|
||||
"')\">" +
|
||||
top.ICEcoder.indexData.git.paths[i] +
|
||||
"</div>" +
|
||||
"\n";
|
||||
top.get("git").innerHTML = gitContent;
|
||||
}
|
||||
}
|
||||
top.ICEcoder.indexing = false;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user