From: Jörg Sommer Date: Mon, 14 Apr 2008 10:06:33 GMT Subject: Re: [PATCH/RFC 01/10] Teach rebase interactive the mark command Message-ID: <20080414100633.GB15098@alea.gnuu.de> In-Reply-To: <20080414062425.GB20979@spearce.org> Hi Shawn, Shawn O. Pearce schrieb am Mon 14. Apr, 02:24 (-0400): > Jrg Sommer wrote: > > Shawn O. Pearce schrieb am Sat 12. Apr, 23:56 (-0400): > > > > > > Why not use the mark syntax that fast-import uses? > > > > I didn't know it. > > > > > In fast-import we use ":n" anytime we need to refer to a mark, e.g. > > > ":1" or ":5". > > > > Currently, I don't restrict the mark to be a number. It can anything that > > is a valid ref. Should I restrict it? > > In fast-import a mark can *only* be a number. Only for the record: fast-import uses numbers and not strings of digits, i.e. 001 == 1, and it ignores stuff following digits, i.e. "12a" == 12 and "abc" == 0. > > Except of this, I prefer to use the colon to be much closer to the syntax > > of fast-import. > > Me too, but it looks like in a human edited "TODO" script we may want > to be more friendly and allow named marks. I don't think so. There shouldn't be so much marks that a user can't remember them. Thanks for your comments. Jörg. -- The UNIX Guru's View of Sex: # unzip ; strip ; touch ; finger ; mount ; fsck ; more ; yes ; umount ; sleep