mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Show nicely formatted diff
This steals the idea and markup from Gitnub. Thanks! :)
This commit is contained in:
+4
-1
@@ -48,8 +48,11 @@ var doeHet = function() {
|
||||
});
|
||||
|
||||
$("message").innerHTML = commit.message.replace(/\n/g,"<br>");
|
||||
if (commit.diff.length < 10000) {
|
||||
if (commit.diff.length < 1000000) {
|
||||
$("details").hide();
|
||||
$("details").innerHTML = commit.diff;
|
||||
highlightDiffs();
|
||||
$("details").show();
|
||||
} else {
|
||||
$("details").innerHTML = "This diff is currently too large to watch in detailed mode";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user