On Fri, 23 Jun 2017 07:42:29 -0700 (MST) alvinpenner <penner@...1856...> wrote:
thanks, on my system that produced the answer:
git log -1 --date=local --format="%cd (%h)" Thu Jun 22 22:09:08 2017 (213013a)
I think this answer is probably correct since there was indeed a commit made at: commit 213013a5a08d37bd29da167eece256be75cebe7c Author: Felipe CorrĂȘa da Silva Sanches <juca@...2270...> Date: Thu Jun 22 23:09:08 2017 -0300
However, it does not exactly answer my question. Assume that someone has reported that a bug was fixed in commit number: '0edfdf95'
/an/ answer at the end of my response below (somewhat out of sequence because of email issues).
A project I work on uses YYYMMDDHHMMSS to ID commits (in addition to the git hash). Chances of two authors submitting at the same second are minuscule. I think, the way we set it up, it reports local time, so that could be confusing in some cases.
We use that for a few reasons. A download of a git commit can't include its own hash. Non-programmers probably understand 20170623075434 as a build ID more intuitively than 42da7b2. The third thing I forgot.
We use a git commit hook to update this value in a file the code reads and reports at runtime, and also to add the number at the bottom of the commit msg. This only works when developers install the git hook (trivial but easy to forget), so we just handle its absence gracefully.
If you just want to relate git hashes to dates:
git log --pretty='format:%H %ci'
(see https://git-scm.com/docs/git-log#_pretty_formats)
Cheers -Terry
How would I find out when this was done? In other words, what is the mechanism whereby someone can verbally report that a bug was fixed in a certain commit, and that someone else can independently confirm when it was fixed? Sorry to be a pest, but this is an essential feature of a bug reporting/fixing system.
Alvin
-- View this message in context: http://inkscape.13.x6.nabble.com/two-trivial-questions-concerning-the-gitlab... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel