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

Re: [PATCH 2/2] better introduction of GIT with USE_NSEC defined

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Mar 5, 2009, 09:11 UTC
Message-ID
<49AF9745.8050207@viscovery.net>
In-Reply-To
<6d937a859ca499f534eea08720fca84f3d4ded2f.1236187259.git.barvik@broadpark.no>
Kjetil Barvik schrieb:
Show 7 quoted lines
> -	istate->timestamp.sec = st.st_mtime;
> -#ifdef USE_NSEC
> +	istate->timestamp.sec = (unsigned int)st.st_mtime;
>  	istate->timestamp.nsec = (unsigned int)st.st_mtim.tv_nsec;
> -#else
> -	istate->timestamp.nsec = 0;
> -#endif

Doesn't this break on systems where st_mtime is time_t and st_mtim does not exist?

-- Hannes
Previous: Junio C HamanoNext: Johannes Sixt
Message 7 of 11 in “some few more 'git checkout' improvements”
  1. 0/2 some few more 'git checkout' improvementsKjetil Barvik, Mar 4, 2009
  2. 1/2 stat_tracking_info(): only count real commitsKjetil Barvik, Mar 4, 2009
  3. 2/2 better introduction of GIT with USE_NSEC definedKjetil Barvik, Mar 4, 2009
  4. Junio C HamanoMar 5, 2009
  5. Kjetil BarvikMar 5, 2009
  6. Junio C HamanoMar 5, 2009
  7. Johannes SixtMar 5, 2009
  8. Johannes SixtMar 5, 2009
  9. Junio C HamanoMar 5, 2009
  10. Junio C HamanoMar 5, 2009
  11. Johannes SixtMar 6, 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.