[Haskell-cafe] Why not Darcs?

Jake McArthur jake.mcarthur at gmail.com
Fri Apr 22 02:19:11 CEST 2011


On Thu, Apr 21, 2011 at 6:32 PM, Maciej Marcin Piechotka
<uzytkownik2 at gmail.com> wrote:
> Assume following changes
> 1. Feature X - file x.hs
> 2. Feature Y - file y.hs and x.hs
> 3. Feature Z - file z.hs and x.hs
> 4. Fix to feature Y (changes x.hs)
> 5. Fix to feature X (changes x.hs)
>
> Now before pushing I would like to have 3 nice commits. In git I can
> rewrite history by single command:
>
> # git rebase -i origin/master
>
> and edit the file to look like
>
> pick 1
> fixup 5
> pick 2
> fixup 4
> pick 3
>
> Manually/automatically check everything is ok.

% darcs unrec -a -p 'Fix to feature X'
Finished unrecording.
% darcs amend -a -p 'Feature X'
Thu Apr 21 19:11:54 CDT 2011  Jake McArthur <Jake.McArthur at gmail.com>
  * Feature X
Shall I amend this patch? [yN...], or ? for more options: y
Finished amending patch:
Thu Apr 21 19:14:41 CDT 2011  Jake McArthur <Jake.McArthur at gmail.com>
  * Feature X
% darcs unrec -a -p 'Fix to feature Y'
Finished unrecording.
% darcs amend -a -p 'Feature Y'
Thu Apr 21 19:12:12 CDT 2011  Jake McArthur <Jake.McArthur at gmail.com>
  * Feature Y
Shall I amend this patch? [yN...], or ? for more options: y
Finished amending patch:
Thu Apr 21 19:14:50 CDT 2011  Jake McArthur <Jake.McArthur at gmail.com>
  * Feature Y

- Jake



More information about the Haskell-Cafe mailing list