{"thread":{"id":"28140","subject":"[PATCH] checkout-index: remove obsolete comment","startedAt":"2011-08-17T12:22:13Z","lastAt":"2011-08-17T17:40:14Z","messageCount":2,"participants":["Nguyễn Thái Ngọc Duy","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"173671","messageId":"1313583733-7514-1-git-send-email-pclouds@gmail.com","threadId":"28140","inReplyTo":null,"subject":"[PATCH] checkout-index: remove obsolete comment","fromName":"Nguyễn Thái Ngọc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2011-08-17T12:22:13Z","receivedAt":"2011-08-17T12:22:13Z","isPatch":true,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"The first paragraph about flag order is no longer true and is\nmentioned in git-checkout-index.txt. The rest is also mentioned in\ngit-checkout-index.txt.\n\nRemove it and keep uptodate document in one place.\n\nSigned-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>\n---\n builtin/checkout-index.c |   32 --------------------------------\n 1 files changed, 0 insertions(+), 32 deletions(-)\n\ndiff --git a/builtin/checkout-index.c b/builtin/checkout-index.c\nindex f1fec24..c16d82b 100644\n--- a/builtin/checkout-index.c\n+++ b/builtin/checkout-index.c\n@@ -3,38 +3,6 @@\n  *\n  * Copyright (C) 2005 Linus Torvalds\n  *\n- * Careful: order of argument flags does matter. For example,\n- *\n- *\tgit checkout-index -a -f file.c\n- *\n- * Will first check out all files listed in the cache (but not\n- * overwrite any old ones), and then force-checkout \"file.c\" a\n- * second time (ie that one _will_ overwrite any old contents\n- * with the same filename).\n- *\n- * Also, just doing \"git checkout-index\" does nothing. You probably\n- * meant \"git checkout-index -a\". And if you want to force it, you\n- * want \"git checkout-index -f -a\".\n- *\n- * Intuitiveness is not the goal here. Repeatability is. The\n- * reason for the \"no arguments means no work\" thing is that\n- * from scripts you are supposed to be able to do things like\n- *\n- *\tfind . -name '*.h' -print0 | xargs -0 git checkout-index -f --\n- *\n- * or:\n- *\n- *\tfind . -name '*.h' -print0 | git checkout-index -f -z --stdin\n- *\n- * which will force all existing *.h files to be replaced with\n- * their cached copies. If an empty command line implied \"all\",\n- * then this would force-refresh everything in the cache, which\n- * was not the point.\n- *\n- * Oh, and the \"--\" is just a good idea when you know the rest\n- * will be filenames. Just so that you wouldn't have a filename\n- * of \"-a\" causing problems (not possible in the above example,\n- * but get used to it in scripting!).\n  */\n #include \"builtin.h\"\n #include \"cache.h\"\n-- \n1.7.4.74.g639db\n"},{"id":"173680","messageId":"7v62lwey2p.fsf@alter.siamese.dyndns.org","threadId":"28140","inReplyTo":"1313583733-7514-1-git-send-email-pclouds@gmail.com","subject":"Re: [PATCH] checkout-index: remove obsolete comment","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2011-08-17T17:40:14Z","receivedAt":"2011-08-17T17:40:14Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks; this will go traight to 'maint'.\n"}]}