* [PATCH] feed: r= parameter supports "HEAD" as a revision
@ 2015-08-23 2:40 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2015-08-23 2:40 UTC (permalink / raw)
To: meta
public-inbox git repositories require a "HEAD" ref to
function correctly anyways.
---
lib/PublicInbox/Feed.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm
index 8dd6d03..51216aa 100644
--- a/lib/PublicInbox/Feed.pm
+++ b/lib/PublicInbox/Feed.pm
@@ -141,7 +141,7 @@ sub each_recent_blob {
my $hex = '[a-f0-9]';
my $addmsg = qr!^:000000 100644 \S+ \S+ A\t(${hex}{2}/${hex}{38})$!;
my $delmsg = qr!^:100644 000000 \S+ \S+ D\t(${hex}{2}/${hex}{38})$!;
- my $refhex = qr/${hex}{4,40}(?:~\d+)?/;
+ my $refhex = qr/(?:HEAD|${hex}{4,40})(?:~\d+)?/;
my $cgi = $ctx->{cgi};
# revision ranges may be specified
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-08-23 2:40 7% [PATCH] feed: r= parameter supports "HEAD" as a revision Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).