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:
Bram Schoenmakers 2022-10-26 23:27:52 +02:00
parent a55122a7c4
commit 8987497ed1
5 changed files with 4 additions and 8 deletions

View file

@ -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

View file

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB