Skip to content

Commit a1aafc6

Browse files
author
kurttheviking
committed
update 1.x examples
1 parent cee75d7 commit a1aafc6

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

example/simple.js

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,15 @@
22

33
var git = require('../')
44

5-
console.log('[git.short()]', git.short());
5+
console.log('git.short() => ' + git.short());
66
// 75bf4ee
77

8-
console.log('[git.long()]', git.long());
8+
console.log('git.long() => ' + git.long());
99
// 75bf4eea9aa1a7fd6505d0d0aa43105feafa92ef
1010

11-
console.log('[git.branch()]', git.branch());
11+
console.log('git.branch() => ' + git.branch());
1212
// master
1313

14-
console.log('[git.tag()]', git.tag());
15-
// 0.1.0
14+
// console.log('git.tag() => ', git.tag());
1615

17-
console.log('[git.log()]', git.log());
18-
// [
19-
// [
20-
// '75bf4eea9aa1a7fd6505d0d0aa43105feafa92ef',
21-
// 'update pjson to include sync exec',
22-
// '17 minutes ago',
23-
// 'kurttheviking'
24-
// ],
25-
// [
26-
// '143120ac3ecc07aeae1462b372bb2033aa20c3ee',
27-
// 'Merge pull request #6 from shtylman/patch-1',
28-
// '1 year, 2 months ago',
29-
// 'Thomas Blobaum'
30-
// ],
31-
// ...
32-
// ]
16+
// console.log('git.log() => ', git.log());

0 commit comments

Comments
 (0)