17 lines
291 B
JavaScript
17 lines
291 B
JavaScript
const rawCommits = [
|
|
'hash-one==SPLIT==commit-one==END==\n',
|
|
'hash-two==SPLIT==commit-two==END==\n'
|
|
]
|
|
|
|
module.exports = {
|
|
exec: (command, cb) => {
|
|
cb(
|
|
null,
|
|
/\.\.HEAD/.test(command) ?
|
|
rawCommits[0] :
|
|
rawCommits.join()
|
|
)
|
|
},
|
|
'@noCallThru': true
|
|
}
|