[RFC] Improving bzr add: Add option --message (for auto 'ci')
Martin Pool
mbp at sourcefrog.net
Thu Mar 15 23:30:14 GMT 2007
On 3/16/07, Jari Aalto <jari.aalto at cante.net> wrote:
> That could be avoided and simplified. For tree imports, the message to all
> is same, like "- Import 1.3.1 vanilla", after which you start hacking.
> The presence of added --message|-m option in:
>
> bzr ci -m "- Added configuration file" file.conf
>
> Would effectively do two steps simultaneously:
>
> bzr add
> bzr ci -m "- Added configuration file" file.conf
>
> > Other systems have a "commit --auto", which finds unknown files and adds
> > them. Which I've heard is quite nice.
> >
> > I think bzr could easily be updated to support this, and I would be
> > happy to review any patches that introduce it.
>
> I wouldn't dare to use --auto because I want usually hand pick what to add.
> But the 1-step add-and-commit comes handy for all initial imports.
I think
bzr ci --auto -m 'add foo' foo
should auto-add (or remove) just that single file and commit it. If
you make a mistake and forget the filename you can uncommit.
--
Martin
More information about the bazaar
mailing list