Skip to content

Instantly share code, notes, and snippets.

@spookylukey
Created June 13, 2022 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spookylukey/0513fddba23e86f5912258a9ce369561 to your computer and use it in GitHub Desktop.
Save spookylukey/0513fddba23e86f5912258a9ce369561 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>magit: tmp</title>
<meta name="generator" content="emacs 26.3; htmlfontify 0.21" />
<style type="text/css"><!--
body { font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; color: #655370; background: #fbf8ef; font-size: 9pt; text-decoration: none; }
span.default { font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; color: #655370; background: #fbf8ef; font-size: 9pt; text-decoration: none; }
span.default a { font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; color: #655370; background: #fbf8ef; font-size: 9pt; text-decoration: underline; }
span.magit-branch-current { border-width: 1px; color: #3a81c3; background: #edf1ed; font-weight: 700; font-family: Rec Mono Semicasual; font-stretch: normal; font-style: normal; font-size: 9pt; text-decoration: none; }
span.magit-branch-current a { border-width: 1px; color: #3a81c3; background: #edf1ed; font-weight: 700; font-family: Rec Mono Semicasual; font-stretch: normal; font-style: normal; font-size: 9pt; text-decoration: underline; }
span.magit-hash { color: #715ab1; font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; background: #fbf8ef; font-size: 9pt; text-decoration: none; }
span.magit-hash a { color: #715ab1; font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; background: #fbf8ef; font-size: 9pt; text-decoration: underline; }
span.magit-diff-context { font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; color: #655370; background: #fbf8ef; font-size: 9pt; text-decoration: none; }
span.magit-diff-context a { font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; color: #655370; background: #fbf8ef; font-size: 9pt; text-decoration: underline; }
span.magit-diff-added { color: #22aa22; background: #ddffdd; font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; font-size: 9pt; text-decoration: none; }
span.magit-diff-added a { color: #22aa22; background: #ddffdd; font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; font-size: 9pt; text-decoration: underline; }
span.magit-diff-hunk-heading { color: #8c799f; background: #e2e0ea; font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; font-size: 9pt; text-decoration: none; }
span.magit-diff-hunk-heading a { color: #8c799f; background: #e2e0ea; font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; font-size: 9pt; text-decoration: underline; }
span.magit-diff-file-heading { font-weight: 700; font-family: Rec Mono Semicasual; font-stretch: normal; font-style: normal; color: #655370; background: #fbf8ef; font-size: 9pt; text-decoration: none; }
span.magit-diff-file-heading a { font-weight: 700; font-family: Rec Mono Semicasual; font-stretch: normal; font-style: normal; color: #655370; background: #fbf8ef; font-size: 9pt; text-decoration: underline; }
span.magit-section-child-count { font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; color: #655370; background: #fbf8ef; font-size: 9pt; text-decoration: none; }
span.magit-section-child-count a { font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; color: #655370; background: #fbf8ef; font-size: 9pt; text-decoration: underline; }
span.magit-section-heading { font-weight: 700; font-family: Rec Mono Semicasual; font-stretch: normal; font-style: normal; color: #655370; background: #fbf8ef; font-size: 9pt; text-decoration: none; }
span.magit-section-heading a { font-weight: 700; font-family: Rec Mono Semicasual; font-stretch: normal; font-style: normal; color: #655370; background: #fbf8ef; font-size: 9pt; text-decoration: underline; }
span.magit-section-highlight-0001 { background: #efeae9; font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; color: #655370; font-size: 9pt; text-decoration: none; }
span.magit-section-highlight-0001 a { background: #efeae9; font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; color: #655370; font-size: 9pt; text-decoration: underline; }
span.magit-section-highlight-0000 { background: #efeae9; font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; color: #655370; font-size: 9pt; text-decoration: none; }
span.magit-section-highlight-0000 a { background: #efeae9; font-family: Rec Mono Semicasual; font-stretch: normal; font-weight: 500; font-style: normal; color: #655370; font-size: 9pt; text-decoration: underline; }
--></style>
<script type="text/javascript"><!--
// this function is needed to work around
// a bug in IE related to element attributes
function hasClass(obj)
{
var result = false;
if (obj.getAttributeNode("class") != null)
{
result = obj.getAttributeNode("class").value;
}
return result;
}
function stripe(id)
{
// the flag we'll use to keep track of
// whether the current row is odd or even
var even = false;
// if arguments are provided to specify the colors
// of the even & odd rows, then use them;
// otherwise use the following defaults:
var evenColor = arguments[1] ? arguments[1] : "#fff";
var oddColor = arguments[2] ? arguments[2] : "#ddd";
// obtain a reference to the desired table
// if no such table exists, abort
var table = document.getElementById(id);
if (! table) { return; }
// by definition, tables can have more than one tbody
// element, so we'll have to get the list of child
// &lt;tbody&gt;s
var tbodies = table.getElementsByTagName("tbody");
// and iterate through them...
for (var h = 0; h < tbodies.length; h++)
{
// find all the &lt;tr&gt; elements...
var trs = tbodies[h].getElementsByTagName("tr");
// ... and iterate through them
for (var i = 0; i < trs.length; i++)
{
// avoid rows that have a class attribute
// or backgroundColor style
if (! hasClass(trs[i]) &&
! trs[i].style.backgroundColor)
{
// get all the cells in this row...
var tds = trs[i].getElementsByTagName("td");
// and iterate through them...
for (var j = 0; j < tds.length; j++)
{
var mytd = tds[j];
// avoid cells that have a class attribute
// or backgroundColor style
if (! hasClass(mytd) &&
! mytd.style.backgroundColor)
{
mytd.style.backgroundColor =
even ? evenColor : oddColor;
}
}
}
// flip from odd to even, or vice-versa
even = ! even;
}
}
}
function toggle_invis( name )
{
var filter =
{ acceptNode:
function( node )
{ var classname = node.id;
if( classname )
{ var classbase = classname.substr( 0, name.length );
if( classbase == name ) { return NodeFilter.FILTER_ACCEPT; } }
return NodeFilter.FILTER_SKIP; } };
var walker = document.createTreeWalker( document.body ,
NodeFilter.SHOW_ELEMENT ,
filter ,
false );
while( walker.nextNode() )
{
var e = walker.currentNode;
if( e.style.display == "none" ) { e.style.display = "inline"; }
else { e.style.display = "none"; }
}
}
--> </script>
</head>
<body onload="stripe('index'); return true;">
<pre><span class="magit-section-highlight-0000">Head: </span><span class="magit-section-highlight-0001">master</span><span class="magit-section-highlight-0000"> Init
</span>
<span class="magit-section-heading">Unstaged changes </span><span class="magit-section-child-count">(1)</span>
<span class="magit-diff-file-heading">modified file.txt</span>
<span class="magit-diff-hunk-heading">@@ -1 +1,6 @@</span><span class="magit-diff-hunk-heading">
</span><span class="magit-diff-added">+New line hunk1
+
</span><span class="magit-diff-context"> hello
</span><span class="magit-diff-added">+
+New line hunk2
+
</span>
<span class="magit-section-heading">R</span><span class="magit-section-heading">ecent commits</span>
<span class="magit-hash">4</span><span class="magit-hash">fd476a</span> <span class="magit-branch-current">master</span> Init
</pre>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment