hash-methods: Determine the sha from a blob string

Description Usage Arguments Value Examples

Description

The blob is not written to the object database.

Usage

1
2
3
4
hash(data)

## S4 method for signature 'character'
hash(data)

Arguments

data

The string vector to hash.

Value

A string vector with the sha for each string in data.

Examples

1
2
3
4
5
6
7
## Not run: 
identical(hash(c("Hello, world!\n",
                 "test content\n")),
               c("af5626b4a114abcb82d63db7c8082c3c4756e51b",
                 "d670460b4b4aece5915caf5c68d12f560a9fe3e4"))

## End(Not run)


Search within the git2r package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.