projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Clean up the file hashing interface and segment metadata hashes.
[cumulus.git]
/
hash.h
diff --git
a/hash.h
b/hash.h
index
12d5b47
..
5f14dab
100644
(file)
--- a/
hash.h
+++ b/
hash.h
@@
-53,6
+53,9
@@
public:
static Hash *New();
static Hash *New(const std::string& name);
+ // Computes and returns the hash of a file on disk.
+ static std::string hash_file(const char *filename);
+
protected:
virtual const uint8_t *finalize() = 0;