Re: Expected Behavior?
- From
Petr Baudis <pasky@suse.cz>
- Date
- Nov 10, 2005, 20:34 UTC
- Message-ID
- <20051110203411.GX30496@pasky.or.cz>
- In-Reply-To
- <20051109081906.GA4960@c165.ib.student.liu.se>
Dear diary, on Wed, Nov 09, 2005 at 09:19:06AM CET, I got a letter where Fredrik Kuivinen <freku045@student.liu.se> said that...
Show 23 quoted lines
> On Tue, Nov 08, 2005 at 09:50:54PM -0800, Junio C Hamano wrote: > > Fredrik Kuivinen <freku045@student.liu.se> writes: > > > > >> Oops, I missed that part. This is unsafe in theory, if you > > >> could overwrite existing file3_master or file3_dev. Does that > > >> matter in practice? > > > > > > It wont overwrite any existing files. If there is a file named > > > 'file3_master' then the new file will be named 'file3_master_1' and if > > > that file also exists the new file will be named 'file3_master_2', and > > > so on. > > > > Another thing to watch out is that a branch name could have a > > slash in it. It might make more sense to just name the heads file3~2 > > or file3~3 (with as many ~s repeated to avoid name clashes) like > > Pasky does. > > > > Oups, I haven't thought about that. I kind of like the idea that you > can see the branch name in the file names though. How about replacing > any slashes in the branch names with underscores? So the branch > 'foo/bar' will give rise to files with suffixes like '_foo_bar' and > '_foo_bar_<number>'.
I like it too. :-)
Now, this would look like file3~master in Cogito (or file3~~master in case of name conflict, etc.).
Thanks for the idea,
-- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ VI has two modes: the one in which it beeps and the one in which it doesn't.