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

Re: [PATCH 3/3] cache-tree: Write index with updated cache-tree after commit

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Jul 1, 2014, 05:49 UTC
Message-ID
<53B24BF5.3020007@viscovery.net>
In-Reply-To
<53B2386B.4060802@web.de>
Am 7/1/2014 6:26, schrieb Torsten Bögershausen:
Show 9 quoted lines
> And as test -n tests for a non-zero string,
> could we write like this (and drop the local ?)?
> 
>     if test -n "$1"
>     then
>         dir="$1/"
>     else
>         dir=""
>     fi
These six lines can be written as
	dir="$1${1:+/}" &&
and 'local' must be dropped because is not universally supported, yet.
-- Hannes
Previous: Torsten BögershausenNext: Torsten Bögershausen
Message 6 of 13 in “cache-tree: Create/update cache-tree on checkout”
  1. 1/3 cache-tree: Create/update cache-tree on checkoutDavid Turner, Jul 1, 2014
  2. 2/3 test-dump-cache-tree: Improve output format and exit codeDavid Turner, Jul 1, 2014
  3. Eric SunshineJul 1, 2014
  4. 3/3 cache-tree: Write index with updated cache-tree after commitDavid Turner, Jul 1, 2014
  5. Torsten BögershausenJul 1, 2014
  6. Johannes SixtJul 1, 2014
  7. Torsten BögershausenJul 1, 2014
  8. David TurnerJul 1, 2014
  9. Junio C HamanoJul 1, 2014
  10. David TurnerJul 1, 2014
  11. Junio C HamanoJul 1, 2014
  12. David TurnerJul 6, 2014
  13. Junio C HamanoJul 7, 2014

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.