[PATCH] Stop using the "git descriptor file" model

Dirk Hohndel dirk at hohndel.org
Wed Mar 12 20:22:30 PDT 2014


On Wed, 2014-03-12 at 14:53 -0700, Linus Torvalds wrote:

> We want to make it much harder to make it match a real filename, but to
> still allow easy browsing with the file manager interface.  So the git
> repository "filename" format is the path to the git repository
> directory, with the branch name encoded as "[branch]" at the end rather
> than the "path:branch" format that we used in the descriptor file.
> 
> [ For example, on Windows, a filename like "c:\my.xml" could be
>   interpreted as the branchame "\my.xml" in the repository in the
>   directory "c" ]
> 
> In particular, with this model, no filename that ends with ".xml" could
> possibly ever be considered a git repository name, since the last
> character of a git pathname is always ']'.

I really like this. I think this might allow us to simply leave the git
repository feature enabled but undocumented for 4.1
AFAIKT there is no risk that someone might use this by mistake, it's
clean, it makes sense, it's seamlessly integrated.

Excellent idea.

/D



More information about the subsurface mailing list