From: Junio C Hamano <gitster@pobox.com>
To: "Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, Mark Ruvald Pedersen <mped@oticon.com>,
Johannes Schindelin <johannes.schindelin@gmx.de>
Subject: Re: [PATCH 2/2] rebase: allow overriding the maximal length of the generated labels
Date: Thu, 10 Aug 2023 10:15:29 -0700 [thread overview]
Message-ID: <xmqqil9mstse.fsf@gitster.g> (raw)
In-Reply-To: <fa757ac107d58a607a2faabd3e70934ee22d1b51.1691685300.git.gitgitgadget@gmail.com> (Johannes Schindelin via GitGitGadget's message of "Thu, 10 Aug 2023 16:35:00 +0000")
"Johannes Schindelin via GitGitGadget" <gitgitgadget@gmail.com>
writes:
> From: Johannes Schindelin <johannes.schindelin@gmx.de>
>
> With this change, users can override the compiled-in default for the
> maximal length of the label names generated by `git rebase
> --rebase-merges`.
> ...
> +rebase.maxLabelLength::
> + When generating label names from commit subjects, truncate the names to
> + this length. By default, the names are truncated to a little less than
> + `NAME_MAX` (to allow e.g. `.lock` files to be written for the
> + corresponding loose refs).
OK.
> @@ -5512,6 +5514,8 @@ static int make_script_with_merges(struct pretty_print_context *pp,
> *cmd_reset = abbr ? "t" : "reset",
> *cmd_merge = abbr ? "m" : "merge";
>
> + git_config_get_int("rebase.maxlabellength", &state.max_label_length);
> +
And it makes sense that the code does not do any check against the
NAME_MAX; presumably the primary mission of this configuration
variable is to help users who know better than their system headers,
and they may need to bust the NAME_MAX limit that is artificially
set too low.
Will queue. Thanks.
prev parent reply other threads:[~2023-08-10 17:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-10 16:34 [PATCH 0/2] sequencer: truncate lockfile and ref to NAME_MAX Mark Ruvald Pedersen via GitGitGadget
2023-08-10 16:34 ` [PATCH 1/2] sequencer: truncate labels to accommodate loose refs Mark Ruvald Pedersen via GitGitGadget
2023-08-10 17:12 ` Junio C Hamano
2023-08-16 8:36 ` Johannes Schindelin
2023-08-16 16:28 ` Junio C Hamano
2023-08-10 16:35 ` [PATCH 2/2] rebase: allow overriding the maximal length of the generated labels Johannes Schindelin via GitGitGadget
2023-08-10 17:15 ` Junio C Hamano [this message]
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=xmqqil9mstse.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=johannes.schindelin@gmx.de \
--cc=mped@oticon.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.