Add Update-GitRepoRegistration to collapse workflow #4

Open
opened 2026-09-02 11:30:25 +10:00 by pascal_nulah · 0 comments
Owner

Currently to update git repo registration it requires removing the existing registration by name, and then creating a new one in a target location. It would be good to be able to call Update-GitRepoRegistration in a location and have that done automatically.

What this would do is:
If no name is given

  1. check if the current location is a git repo
  2. check if a registration exists by folder name if it is
  3. check if the previous registration location matches the new
  4. if they don't match, update the existing registration location to the new location
    ** If a name is given**
  5. same as the above, with step 2 checking by given name

Constraints:

  • Verb can only work from within a git repo
  • Name is case sensitive (same as all other commands)
Currently to update git repo registration it requires removing the existing registration by name, and then creating a new one in a target location. It would be good to be able to call `Update-GitRepoRegistration` in a location and have that done automatically. What this would do is: **If no name is given** 1. check if the current location is a git repo 2. check if a registration exists by folder name if it is 3. check if the previous registration location matches the new 4. if they don't match, update the existing registration location to the new location ** If a name is given** 1. same as the above, with step 2 checking by given name Constraints: - Verb can only work from within a git repo - `Name` is case sensitive (same as all other commands)
pascal_nulah added this to the Git project 2026-09-02 13:48:02 +10:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
pascal_nulah/Nulah.PowerShell#4
No description provided.