{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/gitsh/pulls/comments/157876997","pull_request_review_id":84588115,"id":157876997,"diff_hunk":"@@ -166,6 +166,22 @@\n           \"#{File.basename(Dir.getwd.sub(/\\A#{Dir.home}/, '~'))} \"\n         )\n       end\n+\n+      it 'replaces %g with the absolute path of the current git binary' do\n+        env = env_double(format: '%g')\n+        prompter = Gitsh::Prompter.new(env: env)\n+\n+        expect(prompter.prompt).to eq \"#{env.git_command} \"\n+      end\n+\n+      it 'replaces %G with the basename of the current git binary' do\n+        env = env_double(format: '%G')","path":"spec/units/prompter_spec.rb","position":13,"original_position":13,"commit_id":"30fc70f0abee6aa1c09e99c37e7168a589c26139","original_commit_id":"30fc70f0abee6aa1c09e99c37e7168a589c26139","user":{"login":"georgebrock","id":35861,"avatar_url":"https://avatars1.githubusercontent.com/u/35861?v=4","gravatar_id":"","url":"https://api.github.com/users/georgebrock","html_url":"https://github.com/georgebrock","followers_url":"https://api.github.com/users/georgebrock/followers","following_url":"https://api.github.com/users/georgebrock/following{/other_user}","gists_url":"https://api.github.com/users/georgebrock/gists{/gist_id}","starred_url":"https://api.github.com/users/georgebrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgebrock/subscriptions","organizations_url":"https://api.github.com/users/georgebrock/orgs","repos_url":"https://api.github.com/users/georgebrock/repos","events_url":"https://api.github.com/users/georgebrock/events{/privacy}","received_events_url":"https://api.github.com/users/georgebrock/received_events","type":"User","site_admin":false},"body":"What do you think about stubbing `git_command` here, so that we can make the assertion more explicit? e.g. if we stubbed it as `/usr/local/bin/my-custom-git`, we could verify the output was `my-custom-git`.","created_at":"2017-12-19T21:16:08Z","updated_at":"2017-12-19T21:16:45Z","html_url":"https://github.com/thoughtbot/gitsh/pull/324#discussion_r157876997","pull_request_url":"https://api.github.com/repos/thoughtbot/gitsh/pulls/324","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/gitsh/pulls/comments/157876997"},"html":{"href":"https://github.com/thoughtbot/gitsh/pull/324#discussion_r157876997"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/gitsh/pulls/324"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/gitsh/pulls/324","id":159268495,"html_url":"https://github.com/thoughtbot/gitsh/pull/324","diff_url":"https://github.com/thoughtbot/gitsh/pull/324.diff","patch_url":"https://github.com/thoughtbot/gitsh/pull/324.patch","issue_url":"https://api.github.com/repos/thoughtbot/gitsh/issues/324","number":324,"state":"open","locked":false,"title":"Implement git_command placeholder in prompt","user":{"login":"benknoble","id":22802209,"avatar_url":"https://avatars3.githubusercontent.com/u/22802209?v=4","gravatar_id":"","url":"https://api.github.com/users/benknoble","html_url":"https://github.com/benknoble","followers_url":"https://api.github.com/users/benknoble/followers","following_url":"https://api.github.com/users/benknoble/following{/other_user}","gists_url":"https://api.github.com/users/benknoble/gists{/gist_id}","starred_url":"https://api.github.com/users/benknoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benknoble/subscriptions","organizations_url":"https://api.github.com/users/benknoble/orgs","repos_url":"https://api.github.com/users/benknoble/repos","events_url":"https://api.github.com/users/benknoble/events{/privacy}","received_events_url":"https://api.github.com/users/benknoble/received_events","type":"User","site_admin":false},"body":"See #323 \r\n\r\nThis required a fairly minimal change to the pattern-matching substitution when generating the prompt string. I also updated the relevant section of the man page.\r\n\r\nThe tests fail without my code and pass with it, though it should be noted that this was my first experience with ruby and spec.","created_at":"2017-12-19T20:50:32Z","updated_at":"2017-12-19T21:16:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7dece11899cce42d65b305388318e234756bb56f","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/gitsh/pulls/324/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/gitsh/pulls/324/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/gitsh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/gitsh/issues/324/comments","statuses_url":"https://api.github.com/repos/thoughtbot/gitsh/statuses/30fc70f0abee6aa1c09e99c37e7168a589c26139","head":{"label":"benknoble:git-command-prompt","ref":"git-command-prompt","sha":"30fc70f0abee6aa1c09e99c37e7168a589c26139","user":{"login":"benknoble","id":22802209,"avatar_url":"https://avatars3.githubusercontent.com/u/22802209?v=4","gravatar_id":"","url":"https://api.github.com/users/benknoble","html_url":"https://github.com/benknoble","followers_url":"https://api.github.com/users/benknoble/followers","following_url":"https://api.github.com/users/benknoble/following{/other_user}","gists_url":"https://api.github.com/users/benknoble/gists{/gist_id}","starred_url":"https://api.github.com/users/benknoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benknoble/subscriptions","organizations_url":"https://api.github.com/users/benknoble/orgs","repos_url":"https://api.github.com/users/benknoble/repos","events_url":"https://api.github.com/users/benknoble/events{/privacy}","received_events_url":"https://api.github.com/users/benknoble/received_events","type":"User","site_admin":false},"repo":{"id":114801660,"name":"gitsh","full_name":"benknoble/gitsh","owner":{"login":"benknoble","id":22802209,"avatar_url":"https://avatars3.githubusercontent.com/u/22802209?v=4","gravatar_id":"","url":"https://api.github.com/users/benknoble","html_url":"https://github.com/benknoble","followers_url":"https://api.github.com/users/benknoble/followers","following_url":"https://api.github.com/users/benknoble/following{/other_user}","gists_url":"https://api.github.com/users/benknoble/gists{/gist_id}","starred_url":"https://api.github.com/users/benknoble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benknoble/subscriptions","organizations_url":"https://api.github.com/users/benknoble/orgs","repos_url":"https://api.github.com/users/benknoble/repos","events_url":"https://api.github.com/users/benknoble/events{/privacy}","received_events_url":"https://api.github.com/users/benknoble/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benknoble/gitsh","description":"An interactive shell for git","fork":true,"url":"https://api.github.com/repos/benknoble/gitsh","forks_url":"https://api.github.com/repos/benknoble/gitsh/forks","keys_url":"https://api.github.com/repos/benknoble/gitsh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benknoble/gitsh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benknoble/gitsh/teams","hooks_url":"https://api.github.com/repos/benknoble/gitsh/hooks","issue_events_url":"https://api.github.com/repos/benknoble/gitsh/issues/events{/number}","events_url":"https://api.github.com/repos/benknoble/gitsh/events","assignees_url":"https://api.github.com/repos/benknoble/gitsh/assignees{/user}","branches_url":"https://api.github.com/repos/benknoble/gitsh/branches{/branch}","tags_url":"https://api.github.com/repos/benknoble/gitsh/tags","blobs_url":"https://api.github.com/repos/benknoble/gitsh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benknoble/gitsh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benknoble/gitsh/git/refs{/sha}","trees_url":"https://api.github.com/repos/benknoble/gitsh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benknoble/gitsh/statuses/{sha}","languages_url":"https://api.github.com/repos/benknoble/gitsh/languages","stargazers_url":"https://api.github.com/repos/benknoble/gitsh/stargazers","contributors_url":"https://api.github.com/repos/benknoble/gitsh/contributors","subscribers_url":"https://api.github.com/repos/benknoble/gitsh/subscribers","subscription_url":"https://api.github.com/repos/benknoble/gitsh/subscription","commits_url":"https://api.github.com/repos/benknoble/gitsh/commits{/sha}","git_commits_url":"https://api.github.com/repos/benknoble/gitsh/git/commits{/sha}","comments_url":"https://api.github.com/repos/benknoble/gitsh/comments{/number}","issue_comment_url":"https://api.github.com/repos/benknoble/gitsh/issues/comments{/number}","contents_url":"https://api.github.com/repos/benknoble/gitsh/contents/{+path}","compare_url":"https://api.github.com/repos/benknoble/gitsh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benknoble/gitsh/merges","archive_url":"https://api.github.com/repos/benknoble/gitsh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benknoble/gitsh/downloads","issues_url":"https://api.github.com/repos/benknoble/gitsh/issues{/number}","pulls_url":"https://api.github.com/repos/benknoble/gitsh/pulls{/number}","milestones_url":"https://api.github.com/repos/benknoble/gitsh/milestones{/number}","notifications_url":"https://api.github.com/repos/benknoble/gitsh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benknoble/gitsh/labels{/name}","releases_url":"https://api.github.com/repos/benknoble/gitsh/releases{/id}","deployments_url":"https://api.github.com/repos/benknoble/gitsh/deployments","created_at":"2017-12-19T19:09:30Z","updated_at":"2017-12-19T19:09:32Z","pushed_at":"2017-12-19T20:46:00Z","git_url":"git://github.com/benknoble/gitsh.git","ssh_url":"git@github.com:benknoble/gitsh.git","clone_url":"https://github.com/benknoble/gitsh.git","svn_url":"https://github.com/benknoble/gitsh","homepage":"https://thoughtbot.com/tools","size":3793,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"thoughtbot:master","ref":"master","sha":"3e836be4db452f7eb54754c9c647ece3dff94368","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars3.githubusercontent.com/u/6183?v=4","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":14063942,"name":"gitsh","full_name":"thoughtbot/gitsh","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars3.githubusercontent.com/u/6183?v=4","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/gitsh","description":"An interactive shell for git","fork":false,"url":"https://api.github.com/repos/thoughtbot/gitsh","forks_url":"https://api.github.com/repos/thoughtbot/gitsh/forks","keys_url":"https://api.github.com/repos/thoughtbot/gitsh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/gitsh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/gitsh/teams","hooks_url":"https://api.github.com/repos/thoughtbot/gitsh/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/gitsh/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/gitsh/events","assignees_url":"https://api.github.com/repos/thoughtbot/gitsh/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/gitsh/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/gitsh/tags","blobs_url":"https://api.github.com/repos/thoughtbot/gitsh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/gitsh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/gitsh/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/gitsh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/gitsh/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/gitsh/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/gitsh/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/gitsh/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/gitsh/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/gitsh/subscription","commits_url":"https://api.github.com/repos/thoughtbot/gitsh/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/gitsh/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/gitsh/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/gitsh/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/gitsh/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/gitsh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/gitsh/merges","archive_url":"https://api.github.com/repos/thoughtbot/gitsh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/gitsh/downloads","issues_url":"https://api.github.com/repos/thoughtbot/gitsh/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/gitsh/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/gitsh/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/gitsh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/gitsh/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/gitsh/releases{/id}","deployments_url":"https://api.github.com/repos/thoughtbot/gitsh/deployments","created_at":"2013-11-02T09:33:38Z","updated_at":"2017-12-16T19:42:42Z","pushed_at":"2017-12-19T20:50:32Z","git_url":"git://github.com/thoughtbot/gitsh.git","ssh_url":"git@github.com:thoughtbot/gitsh.git","clone_url":"https://github.com/thoughtbot/gitsh.git","svn_url":"https://github.com/thoughtbot/gitsh","homepage":"https://thoughtbot.com/tools","size":3793,"stargazers_count":1727,"watchers_count":1727,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":95,"mirror_url":null,"archived":false,"open_issues_count":26,"license":{"key":"bsd-3-clause","name":"BSD 3-clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":95,"open_issues":26,"watchers":1727,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/gitsh/pulls/324"},"html":{"href":"https://github.com/thoughtbot/gitsh/pull/324"},"issue":{"href":"https://api.github.com/repos/thoughtbot/gitsh/issues/324"},"comments":{"href":"https://api.github.com/repos/thoughtbot/gitsh/issues/324/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/gitsh/pulls/324/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/gitsh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/gitsh/pulls/324/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/gitsh/statuses/30fc70f0abee6aa1c09e99c37e7168a589c26139"}},"author_association":"NONE"}}
{"actor":{"display_login":"georgebrock"}}