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

Check revision and if no files modified (looking for svnversion equivalent)

From
Ffkater@googlemail.com <fkater@googlemail.com>
Date
Oct 9, 2011, 16:29 UTC
Message-ID
<20111009162902.GA3000@comppasch2>
Hi,

in my subversion software repository I use the 'svnversion' command to do both:

- get the last revision (e.g. r1001)
- check for modified files not yet checked in (e.g. r1001 M)

Both information is required for the application's build process (Makefiles):

- to display the version in the application
- to refuse to build a proper 'release' version if something
  was not checked in
Would there be a way to do both in git somehow?
 Felix
Next: Jonathan Nieder
Message 1 of 2 in “Check revision and if no files modified (looking for svnversion equivalent)”
  1. fkater@googlemail.comOct 9, 2011
  2. Jonathan NiederOct 9, 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.