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

Re: [STGIT PATCH] replace "git repo-config" usage by "git config"

From
Peter Oberndorfer <kumbayo84@arcor.de>
Date
Jan 16, 2008, 21:46 UTC
Message-ID
<200801162246.21854.kumbayo84@arcor.de>
In-Reply-To
<m3y7aplbie.fsf@roke.D-201>
On Mittwoch 16 Januar 2008, Jakub Narebski wrote:
Show 15 quoted lines
> Peter Oberndorfer <kumbayo84@arcor.de> writes:
> 
> > "git repo-config" will be removed soon
> > 
> > Signed-off-by: Peter Oberndorfer <kumbayo84@arcor.de>
> > ---
> > since i am not good at creating log messages, feel free to change it :-)
> > built on top of kha experimental patch
> > passes all testcases for me
> 
> > @@ -47,7 +47,7 @@ class GitConfig:
> >          if self.__cache.has_key(name):
> >              return self.__cache[name]
> >          try:
> > -            value = Run('git', 'repo-config', '--get', 
name).output_one_line()
Show 8 quoted lines
> > +            value = Run('git', 'config', '--get', name).output_one_line()
> >          except RunException:
> >              value = self.__defaults.get(name, None)
> >          self.__cache[name] = value
> 
> Strange that StGIT didn't abstracted out reading git config, like
> Git.pm and gitweb.perl did.
> 

It is abstracted, that is why the patch only affectes stgit/config.py :-) (beside tests) Or do you mean another type of abstraction like loading the whole config file at once?

> BTW. will StGIT be using libgit-thin + PyGit, or is it not ready yet?
> 

I did not hear about it lately. But since i do not create stgit patches very often i have to say actually i actually have no idea.

Greetings Peter
Previous: Jakub NarebskiNext: Catalin Marinas
Message 10 of 21 in “Remove repo-config”
  1. Remove repo-configDan McGee, Jan 16, 2008
  2. Junio C HamanoJan 16, 2008
  3. Dan McGeeJan 16, 2008
  4. Junio C HamanoJan 16, 2008
  5. Junio C HamanoJan 16, 2008
  6. Junio C HamanoJan 16, 2008
  7. Peter OberndorferJan 16, 2008
  8. replace "git repo-config" usage by "git config"Peter Oberndorfer, Jan 16, 2008
  9. Jakub NarebskiJan 16, 2008
  10. Peter OberndorferJan 16, 2008
  11. Catalin MarinasJan 17, 2008
  12. Jakub NarebskiJan 17, 2008
  13. Karl HasselströmJan 17, 2008
  14. Karl HasselströmJan 18, 2008
  15. Catalin MarinasJan 23, 2008
  16. Karl HasselströmJan 23, 2008
  17. Catalin MarinasJan 23, 2008
  18. Karl HasselströmJan 24, 2008
  19. Catalin MarinasJan 24, 2008
  20. Karl HasselströmJan 24, 2008
  21. Catalin MarinasJan 24, 2008

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.