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

Re: [PATCH] preserve mtime of local clone

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 12, 2009, 05:09 UTC
Message-ID
<7vmy50lpfr.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20090909195158.GA12968@localhost>
Clemens Buchacher <drizzd@aon.at> writes:
Show 11 quoted lines
> +int copy_times(int ofd, int ifd)
> +{
> +	struct stat st;
> +	struct timespec times[2];
> +	if (fstat(ifd, &st))
> +		return -1;
> +	times[0].tv_nsec = UTIME_OMIT;
> +	times[1].tv_sec = st.st_mtime;
> +	times[1].tv_nsec = ST_MTIME_NSEC(st);
> +	return futimens(ofd, times);
> +}

Hmm, futimens() is relatively new. Are minority platforms folks Ok with this patch?

At least SunOS 5.11 (OpenSolaris 0811) seems to barf on UTIME_OMIT.
Previous: Clemens BuchacherNext: Clemens Buchacher
Message 2 of 13 in “preserve mtime of local clone”
  1. preserve mtime of local cloneClemens Buchacher, Sep 9, 2009
  2. Junio C HamanoSep 12, 2009
  3. Clemens BuchacherSep 12, 2009
  4. preserve mtime of local cloneClemens Buchacher, Sep 12, 2009
  5. Junio C HamanoSep 13, 2009
  6. preserve mtime of local cloneClemens Buchacher, Sep 13, 2009
  7. git-gui: suggest gc only when counting at least 2 objectsClemens Buchacher, Sep 13, 2009
  8. Junio C HamanoSep 13, 2009
  9. Clemens BuchacherSep 13, 2009
  10. Jeff KingSep 13, 2009
  11. Clemens BuchacherSep 13, 2009
  12. git-gui: search 4 directories to improve statistic of gc hintClemens Buchacher, Sep 13, 2009
  13. Shawn O. PearceSep 14, 2009

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.