Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noteed/buh
Bup routines in Haskell
https://github.com/noteed/buh
Last synced: about 2 months ago
JSON representation
Bup routines in Haskell
- Host: GitHub
- URL: https://github.com/noteed/buh
- Owner: noteed
- License: other
- Created: 2014-08-30T17:57:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-21T20:19:46.000Z (about 9 years ago)
- Last Synced: 2023-04-13T10:31:54.026Z (over 1 year ago)
- Language: Haskell
- Size: 191 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Buh
Bup routines in Haskell.
## Other executable
`hush` is a simple equivalent to `git hash-object --stdin -w` and `git cat-file
-p`:```
> echo hello | GIT_OBJECT_DIRECTORY=/objects git hash-object --stdin -w
ce013625030ba8dba906f756967f9e9ca394464a
> GIT_OBJECT_DIRECTORY=/objects git cat-file -p ce013625030ba8dba906f756967f9e9ca394464a
hello
> hexdump /objects/ce/013625030ba8dba906f756967f9e9ca394464a
0000000 0178 ca4b 4fc9 3052 c863 cd48 c9c9 02e7
0000010 1d00 04c5 0014
0000015
``````
> echo hello | ./dist/build/hush/hush
ce013625030ba8dba906f756967f9e9ca394464a
> ./dist/build/hush/hush ce013625030ba8dba906f756967f9e9ca394464a
hello
> hexdump /objects/ce/013625030ba8dba906f756967f9e9ca394464a
0000000 0178 ca4b 4fc9 3052 c863 cd48 c9c9 02e7
0000010 1d00 04c5 0014
0000015
```Note: the created file's mode is not the same.