git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC/PATCH] WIP: add deprecation & experimental process/interface

From
Junio C Hamano <gitster@pobox.com>
Date
May 29, 2017, 01:09 UTC
Message-ID
<xmqq4lw4a2pd.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20170527111032.30897-1-avarab@gmail.com>
Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
Show 10 quoted lines
> diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
> index 4f94fc7574..c76bbedf86 100755
> --- a/GIT-VERSION-GEN
> +++ b/GIT-VERSION-GEN
> @@ -37,4 +37,5 @@ fi
>  test "$VN" = "$VC" || {
>  	echo >&2 "GIT_VERSION = $VN"
>  	echo "GIT_VERSION = $VN" >$GVF
> +	echo "GIT_VERSION_INT = $(echo $VN | sed -e 's/^\([0-9]*\)\.\([0-9]*\)\..*/\1\2/')" >>$GVF
>  }

Unlike Perl's v1.2.3.4 notation, this forces us worry when we go from v2.99.0 to v2.100.0 and eventually to v3.0, no?

Show 10 quoted lines
> +	} else if (1) {
> +		/*
> +		 * TODO: Instead of `if 1` we should check a
> +		 * core.version variable here.
> +		 *
> +		 * I.e. if set to core.version=2.13 the user is opting
> +		 * in to get deprecations set at dep_at right away,
> +		 * and also perhaps experimental features from a
> +		 * sister experimental() interface.
> +		 */

This essentially forces us to always read _some_ configuration. Some commands are meant to work outside repositories, so those who want to affect them needs to write core.version in their global configuration. Some low-level plumbing commands may want to do absolute minimum without configurablity.

I am not saying that it is absolutely a bad design decision to force us to read some configuration (yet); it's just that it is something that we have to keep in mind and always think about the ramifications of.

> +		die(_("Early bird deprecation error: %s"), message);
> +	}
> +}
Previous: Junio C HamanoNext: Ævar Arnfjörð Bjarmason
Message 3 of 8 in “WIP: add deprecation & experimental process/interface”
  1. WIP: add deprecation & experimental process/interfaceÆvar Arnfjörð Bjarmason, May 27, 2017
  2. Junio C HamanoMay 28, 2017
  3. Junio C HamanoMay 29, 2017
  4. Ævar Arnfjörð BjarmasonMay 29, 2017
  5. Duy NguyenMay 29, 2017
  6. Ævar Arnfjörð BjarmasonMay 29, 2017
  7. Jeff KingMay 29, 2017
  8. Junio C HamanoMay 30, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.