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

Re: Trivial enhancement: All commands which require an author should accept --author

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 29, 2018, 16:14 UTC
Message-ID
<nycvar.QRO.7.76.6.1808291653190.71@tvgsbejvaqbjf.bet>
In-Reply-To
<201808282305.29407.ulrich.gemkow@ikr.uni-stuttgart.de>
Hi Ulrich,
On Tue, 28 Aug 2018, Ulrich Gemkow wrote:
Show 7 quoted lines
> A trivial enhancement request:
> 
> All commands which require that the author is set (and complain if
> it is not set) should accept the option --author.
> 
> At least the command stash does not accept this option. We are using
> git version 2.17.1 (Ubuntu 18.04).

The `stash` command only incidentally requires that the author is set, as it calls `git commit` internally (which records the author). As stashes are intended to be local only, that author information was never meant to be a vital part of the `stash`.

I could imagine that an even better enhancement request would ask for `git stash` to work even if `user.name` is not configured.

However, to get you unblocked: what you ask for exists already, in some form:

	git \
		-c user.name="Ulrich Gemkow" \
		-c user.email=ulrich.gemkow@ikr.uni-stuttgart.de \
		stash

Granted, this is not the nicest way to specify it, but you are probably scripting things for environments where you do not really want to configure an author, right?

Ciao, Johannes

Previous: Ulrich GemkowNext: Junio C Hamano
Message 2 of 9 in “Trivial enhancement: All commands which require an author should accept --author”
  1. Ulrich GemkowAug 28, 2018
  2. Johannes SchindelinAug 29, 2018
  3. Junio C HamanoAug 29, 2018
  4. Johannes SchindelinAug 30, 2018
  5. Ævar Arnfjörð BjarmasonAug 30, 2018
  6. Johannes SchindelinAug 30, 2018
  7. Ævar Arnfjörð BjarmasonSep 3, 2018
  8. Junio C HamanoAug 30, 2018
  9. Jonathan NiederSep 4, 2018

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.