2024-10-25 09:47:35 +00:00
|
|
|
Reading during batch operation
|
|
|
|
$ mkdir simple
|
|
|
|
$ git init --bare -q simple 2> /dev/null
|
|
|
|
$ git daemon --base-path=. --export-all --enable=receive-pack --reuseaddr --pid-file=pid --detach
|
|
|
|
$ mgit git://localhost/simple#main << EOF
|
|
|
|
> fold
|
|
|
|
> set /bar "Git rocks!"
|
2024-10-25 11:03:30 +00:00
|
|
|
> list /
|
2024-10-25 09:47:35 +00:00
|
|
|
> get /bar
|
|
|
|
> quit
|
|
|
|
> quit
|
2024-10-25 11:03:30 +00:00
|
|
|
- /bar
|
2024-10-25 09:47:35 +00:00
|
|
|
00000000: 4769 7420 726f 636b 7321 Git rocks!
|
|
|
|
$ cd simple
|
2024-10-26 15:34:04 +00:00
|
|
|
$ git log main --pretty=oneline | wc -l | tr -d ' '
|
2024-10-25 09:47:35 +00:00
|
|
|
1
|
|
|
|
$ cd ..
|
|
|
|
$ kill $(cat pid)
|