{"thread":{"id":"35013","subject":"Feature request: Config option for --no-ignore-removal/--ignore-removal","startedAt":"2013-09-25T04:01:31Z","lastAt":"2013-10-17T00:31:58Z","messageCount":3,"participants":["Matthew Cline","Junio C Hamano","Felipe Contreras"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"228191","messageId":"1380081691.7963.4.camel@localhost","threadId":"35013","inReplyTo":null,"subject":"Feature request: Config option for --no-ignore-removal/--ignore-removal","fromName":"Matthew Cline","fromEmail":"matt@nightrealms.com","sentAt":"2013-09-25T04:01:31Z","receivedAt":"2013-09-25T04:01:31Z","isPatch":false,"sender":{"key":"matt@nightrealms.com","avatar":"https://gravatar.com/avatar/7dbe6038081e2f6f52e8b7804b21a629e267395b31cf3c001570d04cade09c5e?d=mp&s=160"},"body":"When I try to a plain old \"git add .\" when files have been\ndeleted/moved, I get the warning\n\n> You ran 'git add' with neither '-A (--all)' or '--ignore-removal'\n\nThere should be some way to put something in ~/.gitconfig to tell git to\nalways choose one or another.\n"},{"id":"229091","messageId":"xmqqli1s6gly.fsf@gitster.dls.corp.google.com","threadId":"35013","inReplyTo":"1380081691.7963.4.camel@localhost","subject":"Re: Feature request: Config option for --no-ignore-removal/--ignore-removal","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2013-10-16T21:38:49Z","receivedAt":"2013-10-16T21:38:49Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Matthew Cline <matt@nightrealms.com> writes:\n\n> When I try to a plain old \"git add .\" when files have been\n> deleted/moved, I get the warning\n>\n>> You ran 'git add' with neither '-A (--all)' or '--ignore-removal'\n>\n> There should be some way to put something in ~/.gitconfig to tell git to\n> always choose one or another.\n\nThe lack of configurability is very much deliberate.\n\nAdding such knobs that make basic behaviour of Git different\ndepending on the per-user setting will make it unnecessarily harder\nto run to help your coworker when she is having problems.  \"git add\ndirectory\" you type in her terminal during the session to help her\ncould work differently from the way you are used to, if we added\nsuch a knob.  We will not be making that mistake.\n\nAs the advice message says, \"git add directory\" ignores removed\nfiles in the directory in the current version, and in Git 2.0, the\nremovals are recorded in the index with such a command, so that \"add\ndirectory\" records the state of the directory as a whole to the\nindex, which is more consistent.\n\nAnd that works for everybody the same way; the only way to prepare\nfor you not to be negatively affected by the switchover is to train\nyour fingers to say --all or --ignore-removal when the difference in\nbehaviour in the current and future versions matters, hence this\nadvise.\n"},{"id":"229110","messageId":"525f2ffe6790b_43dcf8be8485@nysa.notmuch","threadId":"35013","inReplyTo":"xmqqli1s6gly.fsf@gitster.dls.corp.google.com","subject":"Re: Feature request: Config option for --no-ignore-removal/--ignore-removal","fromName":"Felipe Contreras","fromEmail":"felipe.contreras@gmail.com","sentAt":"2013-10-17T00:31:58Z","receivedAt":"2013-10-17T00:31:58Z","isPatch":false,"sender":{"key":"felipe.contreras@gmail.com","avatar":"https://avatars.githubusercontent.com/u/8358?v=4"},"body":"Junio C Hamano wrote:\n> Matthew Cline <matt@nightrealms.com> writes:\n> \n> > When I try to a plain old \"git add .\" when files have been\n> > deleted/moved, I get the warning\n> >\n> >> You ran 'git add' with neither '-A (--all)' or '--ignore-removal'\n> >\n> > There should be some way to put something in ~/.gitconfig to tell git to\n> > always choose one or another.\n> \n> The lack of configurability is very much deliberate.\n> \n> Adding such knobs that make basic behaviour of Git different\n> depending on the per-user setting will make it unnecessarily harder\n> to run to help your coworker when she is having problems.  \"git add\n> directory\" you type in her terminal during the session to help her\n> could work differently from the way you are used to, if we added\n> such a knob.\n\nThat's going to happen regardless. You are assuming she is running Git v2.0,\nwhich she might not.\n\n-- \nFelipe Contreras\n"}]}