{"thread":{"id":"62340","subject":"Re: Feature Proposal: Adding Command for Configuration Diff Between Commits","startedAt":"2024-10-15T12:45:35Z","lastAt":"2024-10-15T12:45:35Z","messageCount":1,"participants":["Prince Roshan"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"505163","messageId":"CAP3G6fr2iTLh53CSWLkcOYy_q9+wjYX8Agk9c_dhBZdTBD=xYQ@mail.gmail.com","threadId":"62340","inReplyTo":"B3A4B5B2-0EDC-4D1A-BC91-0ABFCD1DFE2B@gmail.com","subject":"Re: Feature Proposal: Adding Command for Configuration Diff Between Commits","fromName":"Prince Roshan","fromEmail":"princekrroshan01@gmail.com","sentAt":"2024-10-15T12:45:21Z","receivedAt":"2024-10-15T12:45:35Z","isPatch":false,"sender":{"key":"princekrroshan01@gmail.com","avatar":null},"body":"Thanks for the suggestion, but I realized I gave the wrong example.\nThe issue I was referring to is something that's part of .git/config,\nnot .gitmodules, and it can’t be tracked using git diff\ncommit1:.gitmodules commit2:.gitmodules. Apologies for the confusion!\nI’ll reply to this thread again once I remember the specific problem.\n\nThanks,\nPrince Roshan\n\nOn Tue, 15 Oct 2024 at 17:02, Philippe Blain\n<levraiphilippeblain@gmail.com> wrote:\n>\n> Hi Git Community,\n>\n> Hi !\n>\n>\n>\n> I wanted to propose a new feature for Git that I believe would be\n> beneficial for repository maintainers and developers alike. What do\n> you think of adding a command like git config diff commit1 commit2 to\n> show the configuration differences between two commits?\n>\n> Git configuration is not tracked in general, so it is not clear what this command would do.\n>\n>\n> This command could display differences in repository configurations\n> (such as .git/config or submodule configuration) across two specific\n> commits. I see this being particularly useful in scenarios like:\n>\n> When a submodule is added or updated between two commits, helping to\n> easily track and compare the submodule's configuration changes.\n> Identifying configuration changes (e.g., repository settings) made\n> between different commits without having to manually examine each\n> commit’s changes.\n> Comparing various configuration-related changes in large repositories.\n>\n> For example, when managing repositories with submodules, this feature\n> could quickly highlight differences in submodule references, paths, or\n> URLs, saving time and providing better traceability.\n>\n> The .gitmodules file is tracked though, so you can simply diff two versions of it (technically, you are diffing two blobs):\n>\n> git diff commit1:.gitmodules commit2:.gitmodules\n>\n> Hope this helps,\n>\n> Philippe.\n"}]}