Skip to content
/ pack Public

a dumb git to create incremental packages of a directory

Notifications You must be signed in to change notification settings

lucleray/pack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

52 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

                   β–„
               β–„β–ˆβ–ˆβ–ˆβ–€β–ˆβ–ˆβ–„β–„
           β–„β–“β–ˆβ–ˆβ–ˆβ–„     β–€β–ˆβ–ˆβ–ˆβ–„β–„
       β–„β–“β–ˆβ–ˆβ–€   β–€β–ˆβ–ˆβ–“β–„      β–€β–ˆβ–ˆβ–ˆβ–„
       β–ˆβ–ˆβ–ˆβ–ˆβ–Œβ–„      β–€β–ˆβ–ˆβ–“β–„ β–„β–„β–ˆβ–ˆβ–ˆβ–ˆ
       β–ˆβ–ˆβ–‘β–’β–€β–ˆβ–ˆβ–ˆβ–Œβ–„    β–„β–ˆβ–ˆβ–ˆβ–ˆβ–€  β–“β–ˆ
       β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–’β–€β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–€ β–ˆβ–ˆ   β–“β–ˆ
       β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆ    β–ˆβ–ˆ   β–“β–ˆ
       β–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆ    β–€β–€   β–“β–ˆ
       β–ˆβ–ˆβ–„β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆ        β–„β–ˆβ–ˆ
        β–€β–€β–ˆβ–ˆβ–“β–„β–‘β–‘β–‘β–‘β–ˆβ–ˆ    β–„β–„β–ˆβ–ˆβ–€β–€
            β–€β–€β–ˆβ–ˆβ–“β–„β–ˆβ–ˆβ–„β–„β–ˆβ–ˆβ–ˆβ–€
                β–€β–€β–ˆβ–ˆβ–ˆβ–€

To package the current folder:

pack

Optionally, you can also pass a directory:

pack --dir=my_folder

To inspect an existing package, you can use:

pack --inspect

To unpack a version:

pack --unpack=<version>

Format of a package entry

Each package entry is composed of an index followed by file contents.

<file_path> <file_hash> <version> <offset> <size>
<file_path> <file_hash> <version> <offset> <size>

<file_content><file_content>

For example:

file1	54caaafe12a7afbee7d0ac99cbf915fd	~	0	13
file2	64780afe7d95553571f4e2d387595244	~	13	13
sub/file1	312b7049cce1660d75b0728a7de2c0ea	495c690d445fe3a576283be7051f2904	0	31

file1_contentfile2_content

About

a dumb git to create incremental packages of a directory

Resources

Stars

Watchers

Forks

Languages