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

Feature Proposal: Adding Command for Configuration Diff Between Commits

From
PRPrince Roshan <princekrroshan01@gmail.com>
Date
Oct 15, 2024, 10:59 UTC
Message-ID
<CAP3G6frW_B2pBN0S4H5fsJZgoGtPxC1+_dAzNRhQ9z8ERWZSVg@mail.gmail.com>
Hi Git Community,

I wanted to propose a new feature for Git that I believe would be beneficial for repository maintainers and developers alike. What do you think of adding a command like git config diff commit1 commit2 to show the configuration differences between two commits?

This command could display differences in repository configurations (such as .git/config or submodule configuration) across two specific commits. I see this being particularly useful in scenarios like:

When a submodule is added or updated between two commits, helping to easily track and compare the submodule's configuration changes. Identifying configuration changes (e.g., repository settings) made between different commits without having to manually examine each commit’s changes. Comparing various configuration-related changes in large repositories.

For example, when managing repositories with submodules, this feature could quickly highlight differences in submodule references, paths, or URLs, saving time and providing better traceability.

I believe adding such functionality would enhance Git's usability in managing complex repository structures and configurations.

Looking forward to hearing your feedback and thoughts on this proposal.

Best regards, Prince Roshan princekrroshan01@gmail.com

Next: Taylor Blau
Message 1 of 2 in “Feature Proposal: Adding Command for Configuration Diff Between Commits”
  1. Prince RoshanOct 15, 2024
  2. Taylor BlauOct 15, 2024

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.