Skip to content

Conversation

mstv
Copy link
Member

@mstv mstv commented Jan 13, 2025

Proposed changes

Some repos include submodules with additional subfolders

  • "super/submodule1/repo"
  • "super/submodule2/repo"
    Currently, these submodules cannot be distinguished in GE's title bar.
    Add a regex for skipping uninformative repo names "repo" and "repository".

Screenshots

Before

image

After

image

Test methodology

  • manual

Merge strategy

I agree that the maintainer squash merge this PR (if the commit message is clear).


✒️ I contribute this code under The Developer Certificate of Origin.

@mstv mstv self-assigned this Jan 13, 2025
{
private const string RepositoryDescriptionFileName = "description";
private const string DefaultDescription = "Unnamed repository; edit this file 'description' to name the repository.";

[GeneratedRegex("^(repo(sitory)?)$", RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It also feels that we're adding an alternative to the "description" functionality (which is quite niche, IMO).

My only concern here is there we're harcoding a naming pattern which isn't universal... Back when I worked at a bank, we had a naming convention resembling "solution/project_name/app". If we're going down this route, I feel that the pattern should be customisable.

@mstv mstv changed the title feat: Avoid just "repo" / "repository" in app title feat: Avoid just "app" / "repo" / "repository" in app title Jan 14, 2025
@mstv mstv merged commit 0fb996a into gitextensions:master Jan 16, 2025
3 of 4 checks passed
@mstv mstv deleted the feature/repo_title branch January 16, 2025 19:47
gerhardol pushed a commit to gerhardol/gitextensions that referenced this pull request Jan 19, 2025
@mstv mstv added this to the v5.3 milestone Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants