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

Re: [PATCH] t7701-repack-unpack-unreachable.sh: check timestamp of unpacked objects

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
May 19, 2008, 20:27 UTC
Message-ID
<E8K6ZsektNV-bzzpBDDSjLUNAu6_Tgxq9EV2896g2zCI6VyLsESxXw@cipher.nrlssc.navy.mil>
In-Reply-To
<OleexvYZfiSxUgrxHbDqLpGl2g7TsoOO7pwZXC1fiyL2KxKVuWLtWw@cipher.nrlssc.navy.mil>
Brandon Casey wrote:
Show 14 quoted lines
> Junio C Hamano wrote:
>> drafnel@gmail.com writes:
>>
>>
>>> +	test -f "$fsha1path" -a ! "$fsha1path" -nt "$packfile" -a \
>>> +				! "$fsha1path" -ot "$packfile" &&
>>> +	test -f "$csha1path" -a ! "$csha1path" -nt "$packfile" -a \
>>> +				! "$csha1path" -ot "$packfile" &&
>>> +	test -f "$tsha1path" -a ! "$tsha1path" -nt "$packfile" -a \
>>> +				! "$tsha1path" -ot "$packfile"
>>> +'
>> "Test" primaries -nt/-ot are unfortunately excluded from POSIX.
> 
> hrmph, and it even worked on solaris ksh.

FYI, also works with dash, and there is a use of '-nt' in git-mergetool.sh which is not exercised by the test suite.

Maybe I'll think about a perl version.
Also, do you have a url to your posix reference?
-brandon
Previous: Brandon CaseyNext: Jeff King
Message 4 of 6 in “t7701-repack-unpack-unreachable.sh: check timestamp of unpacked objects”
  1. t7701-repack-unpack-unreachable.sh: check timestamp of unpacked objectsdrafnel@gmail.com, May 18, 2008
  2. Junio C HamanoMay 19, 2008
  3. Brandon CaseyMay 19, 2008
  4. Brandon CaseyMay 19, 2008
  5. Jeff KingMay 19, 2008
  6. Brandon CaseyMay 19, 2008

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.