[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version infor
From: |
Bernt Hansen |
Subject: |
Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information |
Date: |
Wed, 19 Aug 2009 10:42:00 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Nick Dokos <address@hidden> writes:
> Thanks! IIUC, there are then multiple forks in the decision tree:
>
> o running on Windows or on something else?
>
> o if on Windows, running native or under cygwin?
>
> o what shell am I using? cmd.exe and bash under cygwin accept
> different syntax - in particular, the GITDIR=foo solution of
> setting env variables has no hope of working under cmd.exe -
> is that correct?
>
> Sounds complicated. Maybe the best solution for now is to punt on
> the git information on Windows?
>
> (when (not (member system-type '(ms-dos windows-nt cygwin)))
> ...add git info...)
>
> What about system-type == "darwin"? Does Bernt's code work there?
Yes it'll be complicated. Right now I think we should punt and just go
back to the old org-version reporting for windows until we can get a
better working solution since the current version breaks on windows.
I'll try to provide a patch for this.
Manish:
What value do you have for system-type? I expect it says 'windows-nt'
If that's true then the problem is determining if
- git is installed
- what version? Msysgit? cygwin git?
- what shells are available (since CMD.exe has little hope of working)
- msysgit bash
- cygwin shell
- cmd (won't work if msysgit was installed with git in the msysgit
bash shell only)
- running some other shell (git-bash, cygwin) so the git executable is
available and provide the right syntax for each to Do The Right
Thing(tm)
Right now I'm inclined to skip the git-version magic if system-type is
windows-nt just to stop it from breaking on that platform.
-Bernt
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, (continued)
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Bernt Hansen, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Manish, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Bernt Hansen, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Manish, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Bernt Hansen, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Bernt Hansen, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Manish, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Nick Dokos, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Manish, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Nick Dokos, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information,
Bernt Hansen <=
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Manish, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Nick Dokos, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Manish, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Bernt Hansen, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Manish, 2009/08/19
- Re: [Orgmode] [PATCH 0/2] Teach org-version to include git version information, Bernt Hansen, 2009/08/19
- [Orgmode] [PATCH 1/2] Use lisp cd function to change directories to avoid shell dependencies, Bernt Hansen, 2009/08/19
- [Orgmode] [PATCH 2/2] Skip git-version determination if git command fails, Bernt Hansen, 2009/08/19
- [Orgmode] [PATCH 0/2] org-version fix for windows, Bernt Hansen, 2009/08/19
- [Orgmode] Re: [PATCH 0/2] org-version fix for windows, Bernt Hansen, 2009/08/19