git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git Diff feature request

From
EEErik Cervin Edin <erik@cervined.in>
Date
Dec 31, 2021, 11:15 UTC
Message-ID
<CA+JQ7M_tQG4yzSeHjZxPWuWEOM=iSLrWxojQGcpL9E7FcoXLRg@mail.gmail.com>
In-Reply-To
<00dd01d7fd78$7e69e150$7b3da3f0$@nexbridge.com>
On Fri, Dec 31, 2021 at 11:23 AM <rsbecker@nexbridge.com> wrote:
> One interesting technique I have seen used is to set up a pre-commit hook and/or clean filter to format code according to corporate/team standards. Reprocessing code prior to the commit would allow a normalization of coding standards and removing of EOL or space/tab concerns.
> ...
> We use a similar technique (enforced only by policy right now, not a hook), which is to require code to run through standard IDE source formatting. Improperly formatted code hitting pull requests gets a decline until the code is properly formatted.
I agree with Randall, the easiest solution is to adhere to a formatting standard
Previous: rsbecker@nexbridge.comNext: Nick Gearls
Message 3 of 5 in “Git Diff feature request”
  1. Nick GearlsDec 30, 2021
  2. rsbecker@nexbridge.comDec 30, 2021
  3. Erik Cervin EdinDec 31, 2021
  4. Nick GearlsJan 3, 2022
  5. Erik Cervin EdinJan 3, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.