{"action":"created","comment":{"url":"https://api.github.com/repos/shelljs/shelljs/pulls/comments/49271716","id":49271716,"diff_hunk":"@@ -0,0 +1,89 @@\n+var common = require('./common');\n+var fs = require('fs');\n+\n+module.exports = _touch;\n+\n+//@\n+//@ ### touch(file)\n+//@\n+//@ Examples:\n+//@\n+//@ ```javascript\n+//@ touch('file.txt');\n+//@ ```\n+//@\n+//@ Creates a file if it does not exist. Sets the file's mtime and ctime to NOW if the file\n+//@ does exist\n+function _touch(opts, file) {\n+\topts = common.parseOptions(opts, {\n+\t\t'a': 'atime',","path":"src/touch.js","position":19,"original_position":19,"commit_id":"4f619c0994cb7a0fda5cc8dd1145877aeccfbea1","original_commit_id":"4f619c0994cb7a0fda5cc8dd1145877aeccfbea1","user":{"login":"nfischer","id":5801521,"avatar_url":"https://avatars.githubusercontent.com/u/5801521?v=3","gravatar_id":"","url":"https://api.github.com/users/nfischer","html_url":"https://github.com/nfischer","followers_url":"https://api.github.com/users/nfischer/followers","following_url":"https://api.github.com/users/nfischer/following{/other_user}","gists_url":"https://api.github.com/users/nfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/nfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nfischer/subscriptions","organizations_url":"https://api.github.com/users/nfischer/orgs","repos_url":"https://api.github.com/users/nfischer/repos","events_url":"https://api.github.com/users/nfischer/events{/privacy}","received_events_url":"https://api.github.com/users/nfischer/received_events","type":"User","site_admin":false},"body":"Perhaps rename to `atime_only`? That would make more logical sense given the man page:\r\n\r\n> ```\r\n> -a     change only the access time\r\n> ```","created_at":"2016-01-10T05:03:50Z","updated_at":"2016-01-10T05:03:50Z","html_url":"https://github.com/shelljs/shelljs/pull/249#discussion_r49271716","pull_request_url":"https://api.github.com/repos/shelljs/shelljs/pulls/249","_links":{"self":{"href":"https://api.github.com/repos/shelljs/shelljs/pulls/comments/49271716"},"html":{"href":"https://github.com/shelljs/shelljs/pull/249#discussion_r49271716"},"pull_request":{"href":"https://api.github.com/repos/shelljs/shelljs/pulls/249"}}},"pull_request":{"url":"https://api.github.com/repos/shelljs/shelljs/pulls/249","id":49852896,"html_url":"https://github.com/shelljs/shelljs/pull/249","diff_url":"https://github.com/shelljs/shelljs/pull/249.diff","patch_url":"https://github.com/shelljs/shelljs/pull/249.patch","issue_url":"https://api.github.com/repos/shelljs/shelljs/issues/249","number":249,"state":"open","locked":false,"title":"add touch(1)","user":{"login":"blockloop","id":3022496,"avatar_url":"https://avatars.githubusercontent.com/u/3022496?v=3","gravatar_id":"","url":"https://api.github.com/users/blockloop","html_url":"https://github.com/blockloop","followers_url":"https://api.github.com/users/blockloop/followers","following_url":"https://api.github.com/users/blockloop/following{/other_user}","gists_url":"https://api.github.com/users/blockloop/gists{/gist_id}","starred_url":"https://api.github.com/users/blockloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blockloop/subscriptions","organizations_url":"https://api.github.com/users/blockloop/orgs","repos_url":"https://api.github.com/users/blockloop/repos","events_url":"https://api.github.com/users/blockloop/events{/privacy}","received_events_url":"https://api.github.com/users/blockloop/received_events","type":"User","site_admin":false},"body":"Add the `touch` command based on the [manpage](http://linux.die.net/man/1/touch)","created_at":"2015-11-05T17:15:05Z","updated_at":"2016-01-10T05:03:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f27b7614932192b1cafff262e4f391d12f942101","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shelljs/shelljs/pulls/249/commits","review_comments_url":"https://api.github.com/repos/shelljs/shelljs/pulls/249/comments","review_comment_url":"https://api.github.com/repos/shelljs/shelljs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shelljs/shelljs/issues/249/comments","statuses_url":"https://api.github.com/repos/shelljs/shelljs/statuses/4f619c0994cb7a0fda5cc8dd1145877aeccfbea1","head":{"label":"blockloop:master","ref":"master","sha":"4f619c0994cb7a0fda5cc8dd1145877aeccfbea1","user":{"login":"blockloop","id":3022496,"avatar_url":"https://avatars.githubusercontent.com/u/3022496?v=3","gravatar_id":"","url":"https://api.github.com/users/blockloop","html_url":"https://github.com/blockloop","followers_url":"https://api.github.com/users/blockloop/followers","following_url":"https://api.github.com/users/blockloop/following{/other_user}","gists_url":"https://api.github.com/users/blockloop/gists{/gist_id}","starred_url":"https://api.github.com/users/blockloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blockloop/subscriptions","organizations_url":"https://api.github.com/users/blockloop/orgs","repos_url":"https://api.github.com/users/blockloop/repos","events_url":"https://api.github.com/users/blockloop/events{/privacy}","received_events_url":"https://api.github.com/users/blockloop/received_events","type":"User","site_admin":false},"repo":{"id":31720085,"name":"shelljs","full_name":"blockloop/shelljs","owner":{"login":"blockloop","id":3022496,"avatar_url":"https://avatars.githubusercontent.com/u/3022496?v=3","gravatar_id":"","url":"https://api.github.com/users/blockloop","html_url":"https://github.com/blockloop","followers_url":"https://api.github.com/users/blockloop/followers","following_url":"https://api.github.com/users/blockloop/following{/other_user}","gists_url":"https://api.github.com/users/blockloop/gists{/gist_id}","starred_url":"https://api.github.com/users/blockloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blockloop/subscriptions","organizations_url":"https://api.github.com/users/blockloop/orgs","repos_url":"https://api.github.com/users/blockloop/repos","events_url":"https://api.github.com/users/blockloop/events{/privacy}","received_events_url":"https://api.github.com/users/blockloop/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/blockloop/shelljs","description":"Portable Unix shell commands for Node.js","fork":true,"url":"https://api.github.com/repos/blockloop/shelljs","forks_url":"https://api.github.com/repos/blockloop/shelljs/forks","keys_url":"https://api.github.com/repos/blockloop/shelljs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blockloop/shelljs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blockloop/shelljs/teams","hooks_url":"https://api.github.com/repos/blockloop/shelljs/hooks","issue_events_url":"https://api.github.com/repos/blockloop/shelljs/issues/events{/number}","events_url":"https://api.github.com/repos/blockloop/shelljs/events","assignees_url":"https://api.github.com/repos/blockloop/shelljs/assignees{/user}","branches_url":"https://api.github.com/repos/blockloop/shelljs/branches{/branch}","tags_url":"https://api.github.com/repos/blockloop/shelljs/tags","blobs_url":"https://api.github.com/repos/blockloop/shelljs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blockloop/shelljs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blockloop/shelljs/git/refs{/sha}","trees_url":"https://api.github.com/repos/blockloop/shelljs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blockloop/shelljs/statuses/{sha}","languages_url":"https://api.github.com/repos/blockloop/shelljs/languages","stargazers_url":"https://api.github.com/repos/blockloop/shelljs/stargazers","contributors_url":"https://api.github.com/repos/blockloop/shelljs/contributors","subscribers_url":"https://api.github.com/repos/blockloop/shelljs/subscribers","subscription_url":"https://api.github.com/repos/blockloop/shelljs/subscription","commits_url":"https://api.github.com/repos/blockloop/shelljs/commits{/sha}","git_commits_url":"https://api.github.com/repos/blockloop/shelljs/git/commits{/sha}","comments_url":"https://api.github.com/repos/blockloop/shelljs/comments{/number}","issue_comment_url":"https://api.github.com/repos/blockloop/shelljs/issues/comments{/number}","contents_url":"https://api.github.com/repos/blockloop/shelljs/contents/{+path}","compare_url":"https://api.github.com/repos/blockloop/shelljs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blockloop/shelljs/merges","archive_url":"https://api.github.com/repos/blockloop/shelljs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blockloop/shelljs/downloads","issues_url":"https://api.github.com/repos/blockloop/shelljs/issues{/number}","pulls_url":"https://api.github.com/repos/blockloop/shelljs/pulls{/number}","milestones_url":"https://api.github.com/repos/blockloop/shelljs/milestones{/number}","notifications_url":"https://api.github.com/repos/blockloop/shelljs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blockloop/shelljs/labels{/name}","releases_url":"https://api.github.com/repos/blockloop/shelljs/releases{/id}","created_at":"2015-03-05T15:17:01Z","updated_at":"2015-03-05T15:17:01Z","pushed_at":"2015-12-26T21:43:41Z","git_url":"git://github.com/blockloop/shelljs.git","ssh_url":"git@github.com:blockloop/shelljs.git","clone_url":"https://github.com/blockloop/shelljs.git","svn_url":"https://github.com/blockloop/shelljs","homepage":"shelljs.org","size":323,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"shelljs:master","ref":"master","sha":"a38ef4557e8658dec9409a034b31c70d8646e7de","user":{"login":"shelljs","id":14236201,"avatar_url":"https://avatars.githubusercontent.com/u/14236201?v=3","gravatar_id":"","url":"https://api.github.com/users/shelljs","html_url":"https://github.com/shelljs","followers_url":"https://api.github.com/users/shelljs/followers","following_url":"https://api.github.com/users/shelljs/following{/other_user}","gists_url":"https://api.github.com/users/shelljs/gists{/gist_id}","starred_url":"https://api.github.com/users/shelljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelljs/subscriptions","organizations_url":"https://api.github.com/users/shelljs/orgs","repos_url":"https://api.github.com/users/shelljs/repos","events_url":"https://api.github.com/users/shelljs/events{/privacy}","received_events_url":"https://api.github.com/users/shelljs/received_events","type":"Organization","site_admin":false},"repo":{"id":3604157,"name":"shelljs","full_name":"shelljs/shelljs","owner":{"login":"shelljs","id":14236201,"avatar_url":"https://avatars.githubusercontent.com/u/14236201?v=3","gravatar_id":"","url":"https://api.github.com/users/shelljs","html_url":"https://github.com/shelljs","followers_url":"https://api.github.com/users/shelljs/followers","following_url":"https://api.github.com/users/shelljs/following{/other_user}","gists_url":"https://api.github.com/users/shelljs/gists{/gist_id}","starred_url":"https://api.github.com/users/shelljs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shelljs/subscriptions","organizations_url":"https://api.github.com/users/shelljs/orgs","repos_url":"https://api.github.com/users/shelljs/repos","events_url":"https://api.github.com/users/shelljs/events{/privacy}","received_events_url":"https://api.github.com/users/shelljs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shelljs/shelljs","description":"Portable Unix shell commands for Node.js","fork":false,"url":"https://api.github.com/repos/shelljs/shelljs","forks_url":"https://api.github.com/repos/shelljs/shelljs/forks","keys_url":"https://api.github.com/repos/shelljs/shelljs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shelljs/shelljs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shelljs/shelljs/teams","hooks_url":"https://api.github.com/repos/shelljs/shelljs/hooks","issue_events_url":"https://api.github.com/repos/shelljs/shelljs/issues/events{/number}","events_url":"https://api.github.com/repos/shelljs/shelljs/events","assignees_url":"https://api.github.com/repos/shelljs/shelljs/assignees{/user}","branches_url":"https://api.github.com/repos/shelljs/shelljs/branches{/branch}","tags_url":"https://api.github.com/repos/shelljs/shelljs/tags","blobs_url":"https://api.github.com/repos/shelljs/shelljs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shelljs/shelljs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shelljs/shelljs/git/refs{/sha}","trees_url":"https://api.github.com/repos/shelljs/shelljs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shelljs/shelljs/statuses/{sha}","languages_url":"https://api.github.com/repos/shelljs/shelljs/languages","stargazers_url":"https://api.github.com/repos/shelljs/shelljs/stargazers","contributors_url":"https://api.github.com/repos/shelljs/shelljs/contributors","subscribers_url":"https://api.github.com/repos/shelljs/shelljs/subscribers","subscription_url":"https://api.github.com/repos/shelljs/shelljs/subscription","commits_url":"https://api.github.com/repos/shelljs/shelljs/commits{/sha}","git_commits_url":"https://api.github.com/repos/shelljs/shelljs/git/commits{/sha}","comments_url":"https://api.github.com/repos/shelljs/shelljs/comments{/number}","issue_comment_url":"https://api.github.com/repos/shelljs/shelljs/issues/comments{/number}","contents_url":"https://api.github.com/repos/shelljs/shelljs/contents/{+path}","compare_url":"https://api.github.com/repos/shelljs/shelljs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shelljs/shelljs/merges","archive_url":"https://api.github.com/repos/shelljs/shelljs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shelljs/shelljs/downloads","issues_url":"https://api.github.com/repos/shelljs/shelljs/issues{/number}","pulls_url":"https://api.github.com/repos/shelljs/shelljs/pulls{/number}","milestones_url":"https://api.github.com/repos/shelljs/shelljs/milestones{/number}","notifications_url":"https://api.github.com/repos/shelljs/shelljs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shelljs/shelljs/labels{/name}","releases_url":"https://api.github.com/repos/shelljs/shelljs/releases{/id}","created_at":"2012-03-02T17:04:47Z","updated_at":"2016-01-09T13:05:17Z","pushed_at":"2016-01-10T01:50:02Z","git_url":"git://github.com/shelljs/shelljs.git","ssh_url":"git@github.com:shelljs/shelljs.git","clone_url":"https://github.com/shelljs/shelljs.git","svn_url":"https://github.com/shelljs/shelljs","homepage":"shelljs.org","size":559,"stargazers_count":3325,"watchers_count":3325,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":228,"mirror_url":null,"open_issues_count":123,"forks":228,"open_issues":123,"watchers":3325,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shelljs/shelljs/pulls/249"},"html":{"href":"https://github.com/shelljs/shelljs/pull/249"},"issue":{"href":"https://api.github.com/repos/shelljs/shelljs/issues/249"},"comments":{"href":"https://api.github.com/repos/shelljs/shelljs/issues/249/comments"},"review_comments":{"href":"https://api.github.com/repos/shelljs/shelljs/pulls/249/comments"},"review_comment":{"href":"https://api.github.com/repos/shelljs/shelljs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shelljs/shelljs/pulls/249/commits"},"statuses":{"href":"https://api.github.com/repos/shelljs/shelljs/statuses/4f619c0994cb7a0fda5cc8dd1145877aeccfbea1"}}}}