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

last commit in a directory

From
LPLeonid Podolny <leonidp.lists@gmail.com>
Date
Jan 25, 2011, 08:29 UTC
Message-ID
<4D3E89FA.4080901@gmail.com>
Hi,
I have a really simple question: how do I find a last commit for the given directory inside the repository? I want to avoid rebuilding the specific part of the project if there were no changes in it since the last build, so I need to find the sha of the last time the directory was changed.
  Thanks, L.
Next: Johannes Sixt
Message 1 of 3 in “last commit in a directory”
  1. Leonid PodolnyJan 25, 2011
  2. Johannes SixtJan 25, 2011
  3. Leonid PodolnyJan 25, 2011

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.