Simplify branch / tag label placement
A single . is enough to put it on the same rank as the associated commit.
This commit is contained in:
parent
a55122a7c4
commit
8987497ed1
|
@ -128,7 +128,7 @@
|
|||
#+begin_src plantuml
|
||||
!procedure $branchLabel($commit, $name)
|
||||
rectangle "$name" <<branchLabel>>
|
||||
$commit .[norank]. [$name] #grey
|
||||
$commit . [$name] #grey
|
||||
!endprocedure
|
||||
#+end_src
|
||||
|
||||
|
@ -167,9 +167,7 @@ Assigns a tag label to a commit. The commit has to be added with a =$commit= or
|
|||
!procedure $tag($commit, $name)
|
||||
together {
|
||||
rectangle "$name" <<tag>>
|
||||
$commit .[norank,hidden]. [$name] #grey
|
||||
$commit .[norank]. [$name] #grey
|
||||
$commit .[norank,hidden]. [$name] #grey
|
||||
$commit . [$name] #grey
|
||||
}
|
||||
!endprocedure
|
||||
#+end_src
|
||||
|
|
|
@ -46,14 +46,12 @@ $declareCommit($name, $label)
|
|||
|
||||
!procedure $branchLabel($commit, $name)
|
||||
rectangle "$name" <<branchLabel>>
|
||||
$commit .[norank]. [$name] #grey
|
||||
$commit . [$name] #grey
|
||||
!endprocedure
|
||||
!procedure $tag($commit, $name)
|
||||
together {
|
||||
rectangle "$name" <<tag>>
|
||||
$commit .[norank,hidden]. [$name] #grey
|
||||
$commit .[norank]. [$name] #grey
|
||||
$commit .[norank,hidden]. [$name] #grey
|
||||
$commit . [$name] #grey
|
||||
}
|
||||
!endprocedure
|
||||
!procedure $branch_start($name, $numCommits, $fromBranch1="", $fromCommit1="", $toBranch="", $toCommit="", $fromBranch2="", $fromCommit2="")
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 4.2 KiB |
BIN
img/example.png
BIN
img/example.png
Binary file not shown.
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 17 KiB |
BIN
img/tag.png
BIN
img/tag.png
Binary file not shown.
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in a new issue