The sound distributed version control system

#266 amend and archive misunderstood

Closed on July 28, 2021
tankf33der on January 16, 2021

In absolute freedom:

$ pijul init p3
$ cd p3
$ touch a b
$ vim a b
$ cat a
1
2
3
$ cat b
11
22
33
$ pijul add a b
$ pijul rec -am"."
Hash: EARQ2B633EISCLMJ73EIOSSH3LR57NNZD4TEM2IDJMK26Q4ETKKQC
$ vim a
$ cat a
1
1
2
3
3
$ pijul rec -am"."
Hash: 6KDCYTU5GBUP5UVAU6JMOJOJCICIGFJEKPUQUYV6V5ANH3Q4GIGQC
$ pijul rec --amend
# in first Hunk, only add "+ 2" line after + 1 , save, exit
#
#. Edit in a:1 2.4
# up 2.4, new 0:2, down 2.5
#+ 1
#+ 2
$ Hash: hex number 
# it did not write my wrong amend edit
$ cat a
1
1
2
3
3
$ pijul archive -o p
# file "a" are different in repo and archive
$ ls -l
total 12
-rw-r--r-- 1 mpech mpech  10 jan 16 15:14 a
-rw-r--r-- 1 mpech mpech   9 jan 16 15:13 b
-rw-r--r-- 1 mpech mpech 116 jan 16 15:15 p.tar.gz
$ tar -tvf p.tar.gz 
-rw-r--r-- 0/0               9 2021-01-16 15:14 b
-rw-r--r-- 0/0              12 2021-01-16 15:14 a
# if untar it contains wrong edit after amend
$ cat a 
1
2
1
2
3
3
$
tankf33der on July 28, 2021

Let it be closed.

tankf33der closed this discussion on July 28, 2021