~sircmpwn/sr.ht-dev

git.sr.ht: show ref in title v1 SUPERSEDED

Gabriel Augendre: 1
 show ref in title

 3 files changed, 3 insertions(+), 3 deletions(-)
#1092841 alpine.yml success
#1092842 archlinux.yml failed
#1092843 debian.yml success
My opinion is to always display it, in order to be explicit.
For reference, here's the (short) thread discussing the idea:
https://lists.sr.ht/~sircmpwn/sr.ht-discuss/%3CZUiH2lSmaFraZh3g%40dj3ntoo%3E



          
          
          
        
      

      
      
      
      

      

      
      
      
      

      
      
        
          






Maybe "in"?
Hey,

just to move this forward, because I think it's quite useful: could you 
kindly submit a v2 that uses "(ref: NAME)" instead of "on NAME"? That's 
generic enough to be correct in all cases and improvements can be worked 
out later if needed.

Cheers,
Conrad
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/46637/mbox | git am -3
Learn more about email & git

[PATCH git.sr.ht] show ref in title Export this patch

Signed-off-by: Gabriel Augendre <gabriel@augendre.info>
---
 gitsrht/templates/blame.html | 2 +-
 gitsrht/templates/blob.html  | 2 +-
 gitsrht/templates/tree.html  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gitsrht/templates/blame.html b/gitsrht/templates/blame.html
index 2c09ea5..f6a4015 100644
--- a/gitsrht/templates/blame.html
+++ b/gitsrht/templates/blame.html
@@ -1,7 +1,7 @@
{% extends "repo-full.html" %}
{% import "utils.html" as utils %}
{% block title %}
<title>{{repo.owner.canonical_name}}/{{repo.name}}: {{path_join(*path)}} blame - {{cfg("sr.ht", "site-name")}} git</title>
<title>{{repo.owner.canonical_name}}/{{repo.name}} on {{ ref.decode("utf-8", "replace") }}: {{path_join(*path)}} blame - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}
{% block repohead %}
<style>
diff --git a/gitsrht/templates/blob.html b/gitsrht/templates/blob.html
index aabd676..3099415 100644
--- a/gitsrht/templates/blob.html
+++ b/gitsrht/templates/blob.html
@@ -1,7 +1,7 @@
{% extends "repo-full.html" %}
{% import "utils.html" as utils %}
{% block title %}
<title>{{repo.owner.canonical_name}}/{{repo.name}}: {{path_join(*path)}} - {{cfg("sr.ht", "site-name")}} git</title>
<title>{{repo.owner.canonical_name}}/{{repo.name}} on {{ ref.decode("utf-8", "replace") }}: {{path_join(*path)}} - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}
{% block repohead %}
<style>
diff --git a/gitsrht/templates/tree.html b/gitsrht/templates/tree.html
index c5db400..109ee6b 100644
--- a/gitsrht/templates/tree.html
+++ b/gitsrht/templates/tree.html
@@ -1,7 +1,7 @@
{% extends "repo.html" %}
{% import "utils.html" as utils %}
{% block title %}
<title>{{repo.owner.canonical_name}}/{{repo.name}}: {{path_join(*path)}}/ - {{cfg("sr.ht", "site-name")}} git</title>
<title>{{repo.owner.canonical_name}}/{{repo.name}} on {{ ref.decode("utf-8", "replace") }}: {{path_join(*path)}}/ - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}
{% block content %}
<div class="header-extension">
-- 
2.42.0
git.sr.ht/patches: FAILED in 7m7s

[show ref in title][0] from [Gabriel Augendre][1]

[0]: https://lists.sr.ht/~sircmpwn/sr.ht-dev/patches/46637
[1]: mailto:gabriel@augendre.info

✗ #1092842 FAILED  git.sr.ht/patches/archlinux.yml https://builds.sr.ht/~sircmpwn/job/1092842
✓ #1092843 SUCCESS git.sr.ht/patches/debian.yml    https://builds.sr.ht/~sircmpwn/job/1092843
✓ #1092841 SUCCESS git.sr.ht/patches/alpine.yml    https://builds.sr.ht/~sircmpwn/job/1092841
Do we want to print the branch name if it's the default branch?