[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Switching to git



On 03/07/2011 11:19 AM, Nicolas Chauvat wrote:
> Being a maintainer of Python packages often means you know Python
> which enables you to make mercurial work the way want: write a plugin,
> write a script that looks for information in the repo, etc.
> 
>   from mercurial import hg, ui
>   repo = hg.repository(ui.ui(), dirname)
>   changed = repo.status()
>   # do something with changed...

Thats similar in git: you could extend easily as git is more or less a
wrapper around a bunch of programs somewhere in /usr/lib/git. And there
are bindings for most programming languages. Or just write a script
which works on a single repository only.

-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprints: ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F


Reply to: