Re: [PATCH] git-gui: Handle git versions of the form n.n.n.GIT

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Martin Langhoff <martin.langhoff@...>
Cc: Julian Phillips <julian@...>, <git@...>
Date: Tuesday, July 17, 2007 - 10:54 pm

Martin Langhoff <martin.langhoff@gmail.com> wrote:

Too late, already applied and pushed.  ;-)


I think we are now cleaning up the Git version as best we can:

  regsub -- {-dirty$} $_git_version {} _git_version
  regsub {\.[0-9]+\.g[0-9a-f]+$} $_git_version {} _git_version
  regsub {\.rc[0-9]+$} $_git_version {} _git_version
  regsub {\.GIT$} $_git_version {} _git_version

The first fixes the -dirty build problem.  The second drops off
the extra information that git-describe throws into the mix when
it generates output for a non-tagged commit.  The third kills the
rc* component if this is a release candidate.  Note that the rc*
killer must come after the git-describe killer, as the rc* part is
actually in the real tag.  The last one fixes the weird case where
the user has somehow bungled his git software distribution so it
cannot generate a git version via git-describe *and* they have no
`version` file in the source code directory.  Such people really
should fix their git.  But anyway we do support it now.


This I cannot do anything about, other than maybe to warn the user
that they are about to run with a version of Git that we cannot
verify and hence we have no idea if git-gui will work correctly,
or fall flat on its face.

I'll add in a confirmation dialog for this case.  That way the
user can make the decision.  User always knows best.

-- 
Shawn.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Problem running git-gui, Julian Phillips, (Tue Jul 17, 7:48 am)
[PATCH] git-gui: Handle git versions of the form n.n.n.GIT, Julian Phillips, (Tue Jul 17, 5:14 pm)
Re: [PATCH] git-gui: Handle git versions of the form n.n.n.GIT, Shawn O. Pearce, (Tue Jul 17, 10:54 pm)
Re: Problem running git-gui, Thomas Glanzmann, (Tue Jul 17, 8:04 am)