subsys/git/src/main/java/org/commonjava/indy/subsys/git/GitManager.java
private String buildMessage( final ChangeSummary summary, final Collection<String> paths )
    {
        final StringBuilder message =
                        new StringBuilder().append( summary.getSummary() );
        if ( config.isCommitFileManifestsEnabled() )
        {
            message.append( "\n\nFiles changed:\n" )
                   .append( join( paths, "\n" ) );
        }

        return message.toString();
    }
private String buildMessage( final ChangeSummary summary, final Collection<String> paths )
    {
        final StringBuilder message =
                        new StringBuilder().append( summary.getSummary() );
        if ( config.isCommitFileManifestsEnabled() )
        {
            message.append( "\n\nFiles changed:\n" )
                   .append( join( paths, "\n" ) );
        }

        return message.toString();
    }
/*
private boolean verifyChangesExist( final Collection<String> paths )
throws GitSubsystemException
{
return lockAnd(me->{
try
{
final DiffFormatter formatter = new DiffFormatter( System.out );
formatter.setRepository( repo );

resolve the HEAD object
final ObjectId oid = repo.resolve( Constants.HEAD );
if ( oid == null )
{
if there's no head, then these must be real changes...
return true;
}

reset a new tree object to the HEAD
final RevWalk walk = new RevWalk( repo );
final RevCommit commit = walk.parseCommit( oid );
final RevTree treeWalk = walk.parseTree( commit );

construct filters for the paths we're trying to add/commit
final List<TreeFilter> filters = new ArrayList<>();
for ( final String path : paths )
{
filters.add( PathFilter.create( path ) );
}

we're interested in trees with an actual diff. This should improve walk performance.
filters.add( TreeFilter.ANY_DIFF );

set the path filters from above
walk.setTreeFilter( AndTreeFilter.create( filters ) );

setup the tree for doing the comparison vs. uncommitted files
final CanonicalTreeParser tree = new CanonicalTreeParser();
final ObjectReader oldReader = repo.newObjectReader();
try
{
tree.reset( oldReader, treeWalk.getId() );
}
finally
{
oldReader.release();
}
walk.dispose();

this iterator will actually scan the uncommitted files for diff'ing
final FileTreeIterator files = new FileTreeIterator( repo );

do the scan.
final List<DiffEntry> entries = formatter.scan( tree, files );

we're not interested in WHAT the differences are, only that there are differences.
return entries != null && !entries.isEmpty();
}
catch ( final IOException e )
{
throw new GitSubsystemException( "Failed to scan for actual changes among: %s. Reason: %s", e, paths,
e.getMessage() );
}
});
}