MCPcopy Create free account
hub / github.com/christkv/node-git / clean_paths

Function clean_paths

lib/git/git.js:657–667  ·  view source on GitHub ↗
(commits)

Source from the content-addressed store, hash-verified

655}
656
657var clean_paths = function(commits) {
658 var new_commits = {};
659 // Iterate over all the commit hash entries and clean the directory names
660 Object.keys(commits).forEach(function(file) {
661 var sha = commits[file];
662 file = file.substr(file.length - 1, 1) == '/' ? file.substr(0, file.length - 1) : file;
663 new_commits[file] = sha;
664 })
665 // Return all the cleaned commits
666 return new_commits;
667}
668
669// Fetch blame tree
670Git.prototype.blame_tree = function(commit, path, callback) {

Callers 1

git.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected