List for cgit developers and users
 help / color / mirror / Atom feed
From: "René Neumann" <lists@necoro.eu>
To: Derek Stevens <nilix@nilfm.cc>, cgit@lists.zx2c4.com
Subject: Re: [PATCH] use main as fallback branch instead of master
Date: Sun, 9 Jan 2022 01:55:25 +0100	[thread overview]
Message-ID: <89ea4cb8-8cd9-6751-92bd-dd96c3343016@necoro.eu> (raw)
In-Reply-To: <20220108235637.23431-1-nilix@nilfm.cc>


Am 09.01.22 um 00:56 schrieb Derek Stevens:
> Signed-off-by: Derek Stevens <nilix@nilfm.cc>
> ---
>   ui-repolist.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/ui-repolist.c b/ui-repolist.c
> index 529a203..c162290 100644
> --- a/ui-repolist.c
> +++ b/ui-repolist.c
> @@ -53,7 +53,7 @@ static int get_repo_modtime(const struct cgit_repo *repo, time_t *mtime)
>   
>   	strbuf_reset(&path);
>   	strbuf_addf(&path, "%s/refs/heads/%s", repo->path,
> -		    repo->defbranch ? repo->defbranch : "master");
> +		    repo->defbranch ? repo->defbranch : "main");
>   	if (stat(path.buf, &s) == 0) {
>   		*mtime = s.st_mtime;
>   		r->mtime = *mtime;

1. This change itself seems rather meaningless. There is at least one 
other occurrence in cgit.c#guess_defbranch(), which must be in sync.
2. Also change the man file.

- René

  reply	other threads:[~2022-01-09  0:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-08 23:56 Derek Stevens
2022-01-09  0:55 ` René Neumann [this message]
2022-01-09  1:45   ` Derek Stevens

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=89ea4cb8-8cd9-6751-92bd-dd96c3343016@necoro.eu \
    --to=lists@necoro.eu \
    --cc=cgit@lists.zx2c4.com \
    --cc=nilix@nilfm.cc \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).