2 * GIT - The information manager from hell
4 * Copyright (C) Linus Torvalds, 2005
8 int main(int argc
, char **argv
)
12 for (i
= 1 ; i
< argc
; i
++) {
16 unsigned char sha1
[20];
17 fd
= open(path
, O_RDONLY
);
20 index_fd(sha1
, fd
, &st
) < 0)
21 die("Unable to add blob %s to database", path
);
22 printf("%s\n", sha1_to_hex(sha1
));