File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/build/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,21 +46,6 @@ public static String gitTree(Path path) throws IOException {
4646 return Hex .encodeHexString (DigestUtils .gitTree (digest , path ));
4747 }
4848
49- /**
50- * Returns the Git blob hash for the given file.
51- *
52- * @param path A regular file path.
53- * @return A hex-encoded SHA-1 blob hash.
54- * @throws IOException If the path is not a regular file or an I/O error occurs.
55- */
56- public static String gitBlob (Path path ) throws IOException {
57- if (!Files .isRegularFile (path )) {
58- throw new IOException ("Path is not a regular file: " + path );
59- }
60- MessageDigest digest = DigestUtils .getSha1Digest ();
61- return Hex .encodeHexString (DigestUtils .gitBlob (digest , path ));
62- }
63-
6449 /**
6550 * Converts an SCM URI to a download URI suffixed with the current branch name.
6651 *
You can’t perform that action at this time.
0 commit comments