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

Re: [PATCH 1/2] user-manual: Simplify the user configuration.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 24, 2009, 13:42 UTC
Message-ID
<alpine.DEB.1.00.0901241438370.13232@racer>
In-Reply-To
<94a0d4530901240021u65adeff8pb6995ef707bc1f68@mail.gmail.com>
Hi,
On Sat, 24 Jan 2009, Felipe Contreras wrote:
Show 43 quoted lines
> On Thu, Jan 22, 2009 at 8:59 PM, Hannu Koivisto <azure@iki.fi> wrote:
> > Felipe Contreras <felipe.contreras@gmail.com> writes:
> >
> >> On Thu, Jan 22, 2009 at 6:17 PM, Hannu Koivisto <azure@iki.fi> wrote:
> >>> Felipe Contreras <felipe.contreras@gmail.com> writes:
> >>>
> >>>> This brings back my previous question: where is the home directory in
> >>>> a Windows system?
> >>>
> >>> It's where %HOMEDRIVE%%HOMEPATH% points to.
> >>
> >> I thought it was something like that. Do we want something like that
> >> in the manual, or should we assume Windows users know that?
> >
> > I should have added that Unix programs (i.e. Cygwin programs and
> > even some native ports) probably use %HOME% which may be different
> > from %HOMEDRIVE%%HOMEPATH%.  I recall that if you haven't
> > explicitly set up HOME in Windows environment, Cygwin sets it up
> > magically from passwd or falls back to %HOMEDRIVE%%HOMEPATH%.  I
> > have no idea if msysgit respects %HOME% if it is set or always uses
> > %HOMEDRIVE%%HOMEPATH% or something completely different (user
> > profile, most likely).
> >
> > It certainly may be that "home directory" is a foreign concept to
> > some Windows users.  Some might know it as a user profile or a
> > personal folder (just guessing, I'm pretty isolated from less
> > experienced Windows users), even though user profile is a separate
> > concept from "home directory" (note that there is %USERPROFILE%
> > which by default is the same as %HOMEDRIVE%%HOMEPATH% at least in
> > XP).
> >
> > In any case, what Cygwin git does should be expected by Cygwin
> > users.  If msysgit wanted to be a really native Windows application
> > and store the configuration where Microsoft thinks it should be
> > stored, it probably shouldn't store the config under "home
> > directory" to begin with (I'm guessing that's what it does) but
> > under %USERPROFILE\Application Data\Git (...FILE\Local
> > Settings\... in case non-roaming storage is wanted).  And in that
> > case the manual might be misleading for msysgit users.  See
> > e.g. <http://msdn.microsoft.com/en-us/library/ms995853.aspx>.
> 
> Isn't that enough argument to stop assuming the user knows where is
> the "home directory"?

Why does it appear as if we always have to bend over for Windows? That is really frustrating.

In any case, the only thing the user would need to know the location of $HOME for is for .gitconfig. And for Windows users I suggest using the dialog in git gui (for the variables that are editable there), which should cover most of what the user needs. For everything else, they should use "git config".

Because if you really start with explaining where the home can be on Windows, you would also have to cover why "%USERPROFILE%" does not work in Git bash. And before you know what is happening, you have a big ass Windows chapter in the user manual that revolves around anything except Git.

Ciao, Dscho

Previous: Felipe ContrerasNext: Felipe Contreras
Message 17 of 25 in “user-manual: Simplify the user configuration.”
  1. 1/2 user-manual: Simplify the user configuration.Felipe Contreras, Jan 21, 2009
  2. 2/2 Fix typo.Felipe Contreras, Jan 21, 2009
  3. Markus HeidelbergJan 21, 2009
  4. user-manual: Simplify the user configuration.Felipe Contreras, Jan 21, 2009
  5. Jeff KingJan 21, 2009
  6. Felipe ContrerasJan 21, 2009
  7. Jeff KingJan 21, 2009
  8. Junio C HamanoJan 21, 2009
  9. Wincent ColaiutaJan 21, 2009
  10. Felipe ContrerasJan 21, 2009
  11. Hannu KoivistoJan 22, 2009
  12. Felipe ContrerasJan 22, 2009
  13. Junio C HamanoJan 22, 2009
  14. Johannes SchindelinJan 22, 2009
  15. Hannu KoivistoJan 22, 2009
  16. Felipe ContrerasJan 24, 2009
  17. Johannes SchindelinJan 24, 2009
  18. Felipe ContrerasJan 24, 2009
  19. Junio C HamanoJan 25, 2009
  20. Felipe ContrerasJan 25, 2009
  21. Jeff KingJan 25, 2009
  22. Wincent ColaiutaJan 25, 2009
  23. Jeff KingJan 25, 2009
  24. Kyle MoffettJan 25, 2009
  25. Johannes SchindelinJan 25, 2009

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.