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

How to determine age of HEAD commit

From
Philip Oakley <philipoakley@iee.email>
Date
Dec 8, 2019, 12:09 UTC
Message-ID
<956e2efe-3426-f61e-7686-5416b51931b9@iee.email>

The Visual Studio git solution uses the vcpkg manager for dependencies, via a cloned git repo.

To avoid repeated probing for updates when compiling, I considered holding of on 'git pull' for the repo for say 24 hours (daily update). However I'm not aware of a git command that returns the numeric value of the agedness of a given local commit (typically HEAD).

Is there a command that does return the numeric agedness of a commit (e.g. now - commit_date, in seconds)?

-- 
Philip
Next: Roger Gammans
Message 1 of 3 in “How to determine age of HEAD commit”
  1. Philip OakleyDec 8, 2019
  2. Roger GammansDec 8, 2019
  3. Philip OakleyDec 8, 2019

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.