| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cc723fe commit ba0079f
5 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | \input{common.tex} | |
| 2 | - \geometry{papersize={21cm,9cm}} | ||
| 2 | + \geometry{papersize={21\g,9\g}} | ||
| 3 | 3 | \begin{document} | |
| 4 | 4 | \begin{tikzpicture}[main] | |
| 5 | 5 | \boundingbox | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,10 +9,10 @@ | |||
| 9 | 9 | \olddetachedHEAD -> 2; | |
| 10 | 10 | ||
| 11 | 11 | \begin{pgfonlayer}{HEAD} | |
| 12 | - \node [branch, double shadow, above right=.4cm of 2, draw=none, fill=none] | ||
| 13 | - {}; | ||
| 12 | + \node [branch, double shadow, above right=.4\g of 2, draw=none, fill=none] | ||
| 13 | + {}; | ||
| 14 | 14 | \end{pgfonlayer} | |
| 15 | - \node [branch, above right=.4cm of 2] (new) {new}; | ||
| 15 | + \node [branch, above right=.4\g of 2] (new) {new}; | ||
| 16 | 16 | \path [branch line] (new) edge (2); | |
| 17 | 17 | \HEAD -> new; | |
| 18 | 18 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | \documentclass[12pt]{article} | |
| 2 | 2 | \usepackage[latin1]{inputenc} | |
| 3 | 3 | \usepackage{cmbright} | |
| 4 | - \usepackage[pdftex,margin=0pt,papersize={24cm,14cm},noheadfoot]{geometry} | ||
| 4 | + \usepackage[pdftex,margin=0pt,noheadfoot]{geometry} | ||
| 5 | 5 | \usepackage{tikz} | |
| 6 | 6 | \usetikzlibrary{shapes,arrows,shadows,positioning,calc} | |
| 7 | 7 | ||
@@ -13,51 +13,63 @@ | |||
| 13 | 13 | \colorlet{old HEAD}{HEAD!50} | |
| 14 | 14 | \colorlet{old branch}{branch!50} | |
| 15 | 15 | ||
| 16 | + % Global Scaling Factors | ||
| 17 | + % Values that seem reasonable: | ||
| 18 | + % 1cm / 1pt / \Large | ||
| 19 | + % .5cm / .5pt / \scriptsize | ||
| 20 | + \newlength\g | ||
| 21 | + \setlength\g{1cm} | ||
| 22 | + \newlength\gLine | ||
| 23 | + \setlength\gLine{1pt} | ||
| 24 | + \newcommand\gFont{\Large} | ||
| 25 | + | ||
| 26 | + \geometry{papersize={24\g,14\g}} | ||
| 27 | + | ||
| 16 | 28 | \tikzset{ | |
| 17 | - index/.style={rectangle, text width=5cm, text centered, rounded corners, | ||
| 18 | - minimum height=1.5cm, line width=3pt, fill=#1!50, draw=#1}, | ||
| 29 | + index/.style={rectangle, text width=5\g, text centered, rounded corners, | ||
| 30 | + minimum height=1.5\g, line width=3\gLine, fill=#1!50, draw=#1}, | ||
| 19 | 31 | index/.default={index}, | |
| 20 | 32 | history/.style={index=commit, fill=commit!40}, | |
| 21 | 33 | work/.style={index=work}, | |
| 22 | 34 | % | |
| 23 | - object/.style={rectangle, text width=2cm, text centered, rounded corners, | ||
| 24 | - minimum height=1cm, line width=3pt, fill=#1!50, draw=#1}, | ||
| 35 | + object/.style={rectangle, text width=2\g, text centered, rounded corners, | ||
| 36 | + minimum height=1\g, line width=3\gLine, fill=#1!50, draw=#1}, | ||
| 25 | 37 | object/.default={red}, | |
| 26 | 38 | commit/.style={object=commit, fill=commit!40}, | |
| 27 | 39 | new commit/.style={commit, double shadow}, | |
| 28 | 40 | branch/.style={object=branch}, | |
| 29 | 41 | HEAD/.style={object=HEAD}, | |
| 30 | 42 | old branch/.style={object=old branch, text=black!30}, | |
| 31 | 43 | old HEAD/.style={object=old HEAD, text=black!30}, | |
| 32 | - attached HEAD/.style={HEAD, minimum height=2cm}, | ||
| 44 | + attached HEAD/.style={HEAD, minimum height=2\g}, | ||
| 33 | 45 | attached HEAD label/.style={object, draw=none, fill=none}, | |
| 34 | - old attached HEAD/.style={old HEAD, minimum height=2cm}, | ||
| 46 | + old attached HEAD/.style={old HEAD, minimum height=2\g}, | ||
| 35 | 47 | old attached HEAD label/.style={attached HEAD label, text=black!30}, | |
| 36 | 48 | % | |
| 37 | 49 | double shadow/.style={ | |
| 38 | - preaction={fill=#1,transform canvas={xshift=.2cm,yshift=-.2cm}}, | ||
| 39 | - preaction={fill=#1,transform canvas={xshift=-.2cm,yshift=.2cm}}, | ||
| 50 | + preaction={fill=#1,transform canvas={xshift=.2\g,yshift=-.2\g}}, | ||
| 51 | + preaction={fill=#1,transform canvas={xshift=-.2\g,yshift=.2\g}}, | ||
| 40 | 52 | }, | |
| 41 | 53 | double shadow/.default={yellow!75}, | |
| 42 | 54 | % | |
| 43 | - line/.style={>=stealth', line width=1.5pt, draw=black!70, auto=right, | ||
| 55 | + line/.style={>=stealth', line width=1.5\gLine, draw=black!70, auto=right, | ||
| 44 | 56 | bend right}, | |
| 45 | - object line/.style={>=stealth, line width=1.5pt}, | ||
| 57 | + object line/.style={>=stealth, line width=1.5\gLine}, | ||
| 46 | 58 | commit line/.style={object line, color=commit}, | |
| 47 | 59 | new commit line/.style={commit line}, | |
| 48 | 60 | HEAD line/.style={object line, color=HEAD}, | |
| 49 | 61 | branch line/.style={object line, color=branch}, | |
| 50 | 62 | old HEAD line/.style={object line, color=old HEAD}, | |
| 51 | 63 | old branch line/.style={object line, color=old branch}, | |
| 52 | - cancel ref/.style={cross out, draw=black!70, line width=1pt}, | ||
| 64 | + cancel ref/.style={cross out, draw=black!70, line width=1\gLine}, | ||
| 53 | 65 | % | |
| 54 | - background line/.style={draw=white, line width=6pt, | ||
| 55 | - shorten >=6pt, shorten <=6pt}, | ||
| 66 | + background line/.style={draw=white, line width=6\gLine, | ||
| 67 | + shorten >=6\gLine, shorten <=6\gLine}, | ||
| 56 | 68 | % | |
| 57 | - cmd/.style={color=black, font={\Large\ttfamily}}, | ||
| 69 | + cmd/.style={color=black, font={\gFont\ttfamily}}, | ||
| 58 | 70 | % | |
| 59 | - main/.style={node distance=.7cm, bend angle=35, font={\Large}, | ||
| 60 | - x=1.5cm, y=1.5cm}, | ||
| 71 | + main/.style={node distance=.7\g, bend angle=35, font={\gFont}, | ||
| 72 | + x=1.5\g, y=1.5\g}, | ||
| 61 | 73 | every edge/.style={draw, ->}, | |
| 62 | 74 | } | |
| 63 | 75 | ||
@@ -85,15 +97,15 @@ | |||
| 85 | 97 | } | |
| 86 | 98 | ||
| 87 | 99 | \def\ref [#1] "#2" : #3 -> #4;{ | |
| 88 | - \node [#1, above=.4cm of #4] (#3) {#2}; | ||
| 100 | + \node [#1, above=.4\g of #4] (#3) {#2}; | ||
| 89 | 101 | \path [#1 line] (#3) edge (#4); | |
| 90 | 102 | } | |
| 91 | 103 | \def\oldref [#1] "#2" : #3 -> #4;{ | |
| 92 | 104 | \ref [old #1] "#2" : old #3 -> #4; | |
| 93 | - \node [cancel ref, above=.2cm of #4, anchor=center] {}; | ||
| 105 | + \node [cancel ref, above=.2\g of #4, anchor=center] {}; | ||
| 94 | 106 | } | |
| 95 | 107 | \def\refbelow [#1] "#2" : #3 -> #4;{ | |
| 96 | - \node [#1, below=.4cm of #4] (#3) {#2}; | ||
| 108 | + \node [#1, below=.4\g of #4] (#3) {#2}; | ||
| 97 | 109 | \path [#1 line] (#3) edge (#4); | |
| 98 | 110 | } | |
| 99 | 111 | ||
@@ -120,13 +132,15 @@ | |||
| 120 | 132 | \def\addHEAD [#1] "#2" : #3 -> #4;{ | |
| 121 | 133 | \begin{pgfonlayer}{HEAD} | |
| 122 | 134 | \node [#1, anchor=south] (#3) at (#4.south) {}; | |
| 123 | - \node [#1 label, anchor=south] (#3 label) at ($(#4.north)+(0,-3pt) $) {#2}; | ||
| 135 | + \node [#1 label, anchor=south] (#3 label) at ($(#4.north)+(0,-3\gLine) | ||
| 136 | + $) {#2}; | ||
| 124 | 137 | \end{pgfonlayer} | |
| 125 | 138 | } | |
| 126 | 139 | \def\addHEADbelow [#1] "#2" : #3 -> #4;{ | |
| 127 | 140 | \begin{pgfonlayer}{HEAD} | |
| 128 | 141 | \node [#1, anchor=north] (#3) at (#4.north) {}; | |
| 129 | - \node [#1 label, anchor=north] (#3 label) at ($(#4.south)+(0,3pt) $) {#2}; | ||
| 142 | + \node [#1 label, anchor=north] (#3 label) at ($(#4.south)+(0,3\gLine) | ||
| 143 | + $) {#2}; | ||
| 130 | 144 | \end{pgfonlayer} | |
| 131 | 145 | } | |
| 132 | 146 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -13,7 +13,7 @@ | |||
| 13 | 13 | (-5,3) node {another branch} edge [->] (maint) | |
| 14 | 14 | (-5,-0.5) node {files to go in next commit} edge [->] (index) | |
| 15 | 15 | (-5,-2) node {files that you ``see''} edge [->] (work) | |
| 16 | - (5,-1) node [text width=6cm, text badly centered] | ||
| 16 | + (5,-1) node [text width=6\g, text badly centered] | ||
| 17 | 17 | {commit objects, identified by SHA-1 hash} | |
| 18 | 18 | edge [->] (E) | |
| 19 | 19 | edge [->] (D) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ | |||
| 12 | 12 | % draw the old branch manually with a long line | |
| 13 | 13 | \node [old branch, above=1 of E] (old master) {master}; | |
| 14 | 14 | \path [old branch line] (old master) edge (E); | |
| 15 | - \node [cancel ref, above=.2cm of E, anchor=center] {}; | ||
| 15 | + \node [cancel ref, above=.2\g of E, anchor=center] {}; | ||
| 16 | 16 | \oldHEAD -> old master; | |
| 17 | 17 | ||
| 18 | 18 | \newcommit f8bc5 (F) -> E; | |
@@ -23,7 +23,7 @@ | |||
| 23 | 23 | ||
| 24 | 24 | \node [cmd] at (0, 3.75) {git merge other}; | |
| 25 | 25 | ||
| 26 | - \node [inner sep=8pt] (merge) at (0,-1) {3-way merge}; | ||
| 26 | + \node [inner sep=8\gLine] (merge) at (0,-1) {3-way merge}; | ||
| 27 | 27 | ||
| 28 | 28 | \path [background line] | |
| 29 | 29 | (3) edge [-, bend right=15] (merge) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments