Hide arrow target when HEAD is on branch

This commit is contained in:
blinry 2020-10-29 17:41:25 +01:00
parent e7842fb4ee
commit 951ebd4c59

View file

@ -29,7 +29,7 @@ func _process(_delta):
$Line.visible = show_arrow
$Tip.visible = show_arrow
if $Target.text.substr(0, 5) != "refs/":
if $Target.text.substr(0, 5) != "refs/" or repository.objects.has(target):
$Target.text = ""
$Line.points[0] = start - parent_position