6function isexe (path, options, cb) {
7 fs.stat(path, function (er, stat) {
8 cb(er, er ? false : checkStat(stat, options))
12function sync (path, options) {
13 return checkStat(fs.statSync(path), options)
16function checkStat (stat, options) {
17 return stat.isFile() && checkMode(stat, options)
20function checkMode (stat, options) {
25 var myUid = options.uid !== undefined ?
26 options.uid : process.getuid && process.getuid()
27 var myGid = options.gid !== undefined ?
28 options.gid : process.getgid && process.getgid()
30 var u = parseInt('100', 8)
31 var g = parseInt('010', 8)
32 var o = parseInt('001', 8)
35 var ret = (mod & o) ||
36 (mod & g) && gid === myGid ||
37 (mod & u) && uid === myUid ||
38 (mod & ug) && myUid === 0
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list