aboutsummaryrefslogtreecommitdiffstats
path: root/html/js/git-deps-graph.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'html/js/git-deps-graph.coffee')
-rw-r--r--html/js/git-deps-graph.coffee13
1 files changed, 8 insertions, 5 deletions
diff --git a/html/js/git-deps-graph.coffee b/html/js/git-deps-graph.coffee
index b2d36fa..299ed0b 100644
--- a/html/js/git-deps-graph.coffee
+++ b/html/js/git-deps-graph.coffee
@@ -356,13 +356,16 @@ launch_viewer = (d) ->
new_data_notification = (new_data) ->
new_nodes = new_data[0]
new_deps = new_data[1]
- root = new_data[2]
+ query = new_data[2]
notification =
- if root.commitish == root.sha1
- "Analysed dependencies of #{root.abbrev}"
+ if query.revspec == query.tip_sha1
+ "Analysed dependencies of #{query.revspec}"
+ else if query.revisions.length == 1
+ "<span class=\"commit-ref\">#{query.revspec}</span>
+ resolved as #{query.tip_abbrev}"
else
- "<span class=\"commit-ref\">#{root.commitish}</span>
- resolved as #{root.sha1}"
+ "<span class=\"commit-ref\">#{query.revspec}</span>
+ expanded; tip is #{query.tip_abbrev}"
notification += "<p>#{new_nodes} new commit"
notification += "s" unless new_nodes == 1
notification += "; #{new_deps} new " +