{"action":"opened","issue":{"url":"https://api.github.com/repos/rhysd/committia.vim/issues/27","repository_url":"https://api.github.com/repos/rhysd/committia.vim","labels_url":"https://api.github.com/repos/rhysd/committia.vim/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/rhysd/committia.vim/issues/27/comments","events_url":"https://api.github.com/repos/rhysd/committia.vim/issues/27/events","html_url":"https://github.com/rhysd/committia.vim/issues/27","id":159762279,"number":27,"title":"Shown strange status with git worktree","user":{"login":"thinca","id":20474,"avatar_url":"https://avatars.githubusercontent.com/u/20474?v=3","gravatar_id":"","url":"https://api.github.com/users/thinca","html_url":"https://github.com/thinca","followers_url":"https://api.github.com/users/thinca/followers","following_url":"https://api.github.com/users/thinca/following{/other_user}","gists_url":"https://api.github.com/users/thinca/gists{/gist_id}","starred_url":"https://api.github.com/users/thinca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thinca/subscriptions","organizations_url":"https://api.github.com/users/thinca/orgs","repos_url":"https://api.github.com/users/thinca/repos","events_url":"https://api.github.com/users/thinca/events{/privacy}","received_events_url":"https://api.github.com/users/thinca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-11T08:08:29Z","updated_at":"2016-06-11T08:08:29Z","closed_at":null,"body":"Consider the following situation.\r\n\r\n```\r\n$ mkdir tmp\r\n$ cd tmp\r\n$ git init base\r\nInitialized empty Git repository in /home/thinca/tmp/base/.git/\r\n\r\n$ cd base\r\n$ touch README.md\r\n$ git add README.md\r\n$ git commit -m init\r\n[master (root-commit) 6e8b9c5] init\r\n 1 file changed, 0 insertions(+), 0 deletions(-)\r\n create mode 100644 README.md\r\n\r\n$ git worktree add ../sub\r\nPreparing ../sub (identifier sub)\r\nHEAD is now at 6e8b9c5 init\r\n\r\n$ cd ../sub\r\n$ touch new.vim\r\n$ git add new.vim\r\n$ git commit\r\n```\r\n\r\ncommittia.vim shows the following in status window.\r\n\r\n```gitcommit\r\n# On branch sub\r\n# Changes to be committed:\r\n#   (use \"git reset HEAD <file>...\" to unstage)\r\n#\r\n#       new file:   new.vim\r\n#\r\n# Changes not staged for commit:\r\n#   (use \"git add/rm <file>...\" to update what will be committed)\r\n#   (use \"git checkout -- <file>...\" to discard changes in working directory)\r\n#\r\n#       deleted:    README.md\r\n#       deleted:    new.vim\r\n#\r\n# Untracked files:\r\n#   (use \"git add <file>...\" to include in what will be committed)\r\n#\r\n#       sub/\r\n#\r\n```\r\n\r\nThis is strange.  I want to use committia.vim with `git worktree`."}}
{"actor":{"display_login":"thinca"}}