mrgit icon indicating copy to clipboard operation
mrgit copied to clipboard

Allow passing a logger to commands

Open Reinmar opened this issue 9 years ago • 1 comments

That would allow avoiding sth like this:


.then( () => {
	return execCommand.execute( execOptions( `git checkout ${ repository.branch }` ) );
} )
.then( ( response ) => {
	log.concat( response.logs );
} )
.then( () => {
	return execCommand.execute( execOptions( `git pull origin ${ repository.branch }` ) );
} )
.then( ( response ) => {
	log.concat( response.logs );
} )

Reinmar avatar Jan 14 '17 22:01 Reinmar

https://github.com/cksource/mgit2/pull/35#issuecomment-274782553 more here.

Reinmar avatar Jan 24 '17 11:01 Reinmar