{"thread":{"id":"60110","subject":"[wishlist] git-add(1), git-restore(1): -U for more context (with -p)","startedAt":"2023-08-13T19:21:33Z","lastAt":"2023-08-13T19:45:20Z","messageCount":3,"participants":["Alejandro Colomar","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"480636","messageId":"8bbfa6fe-fdaa-aeaf-51bc-16b3d3f7afaa@kernel.org","threadId":"60110","inReplyTo":null,"subject":"[wishlist] git-add(1), git-restore(1): -U for more context (with -p)","fromName":"Alejandro Colomar","fromEmail":"alx@kernel.org","sentAt":"2023-08-13T19:21:20Z","receivedAt":"2023-08-13T19:21:33Z","isPatch":false,"sender":{"key":"alx@kernel.org","avatar":null},"body":"Hi!\n\nIt would be useful to have -U in git-add(1) and git-restore(1)\nto be able to see more context in combination with -p.\n\nCheers,\nAlex\n\n-- \n<http://www.alejandro-colomar.es/>\nGPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5\n"},{"id":"480637","messageId":"xmqq350mohgu.fsf@gitster.g","threadId":"60110","inReplyTo":"8bbfa6fe-fdaa-aeaf-51bc-16b3d3f7afaa@kernel.org","subject":"Re: [wishlist] git-add(1), git-restore(1): -U for more context (with -p)","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2023-08-13T19:44:17Z","receivedAt":"2023-08-13T19:44:37Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Alejandro Colomar <alx@kernel.org> writes:\n\n> It would be useful to have -U in git-add(1) and git-restore(1)\n> to be able to see more context in combination with -p.\n\nEven more useful would be to add commands to enlarge/shrink the\ncontext to the interactive prompt, wouldn't it?  Not all hunks need\nunformly large context and having to decide how many lines of\ncontext to ask upfront and having to stick to the choice during the\nwhole interactive session would be a bad interactive experience.\n"},{"id":"480638","messageId":"6b191540-c2b2-435e-667b-43c251b829fe@kernel.org","threadId":"60110","inReplyTo":"xmqq350mohgu.fsf@gitster.g","subject":"Re: [wishlist] git-add(1), git-restore(1): -U for more context (with -p)","fromName":"Alejandro Colomar","fromEmail":"alx@kernel.org","sentAt":"2023-08-13T19:45:13Z","receivedAt":"2023-08-13T19:45:20Z","isPatch":false,"sender":{"key":"alx@kernel.org","avatar":null},"body":"On 2023-08-13 21:44, Junio C Hamano wrote:\n> Alejandro Colomar <alx@kernel.org> writes:\n> \n>> It would be useful to have -U in git-add(1) and git-restore(1)\n>> to be able to see more context in combination with -p.\n> \n> Even more useful would be to add commands to enlarge/shrink the\n> context to the interactive prompt, wouldn't it?  Not all hunks need\n> unformly large context and having to decide how many lines of\n> context to ask upfront and having to stick to the choice during the\n> whole interactive session would be a bad interactive experience.\n\nYep, that would be even more useful!  :)\n\n-- \n<http://www.alejandro-colomar.es/>\nGPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5\n\n"}]}