[Gambas-user] A little change for the IDE Version Control (git) popup

Benoît Minisini g4mba5 at gmail.com
Thu Sep 13 11:03:37 CEST 2018


Le 13/09/2018 à 07:16, Me a écrit :
> The following seems to work as far as I can see. It adds a "Status" line to the Project Properties popup Version control tab
> and just shows whther the current git branch is up to date or not. It goes at the end of CVersionControlGit.Info method just
> above the Return cInfo line at the end of the method. It does no harm AFAICS and I find it quite handy. It may need transaltion.
> 
> Sorry I can't produce a patch for it. I am still not really on top of this git stuff. So here's the actual source:
> 
>    aResult = Split(VersionControl.Shell("cd " & Shell(Project.Dir) & "&& git status -s"), "\n")
>    If aResult.Count > 0 Then
>      cInfo[("Status")] = (aResult.Count - 1) & " uncommitted changes: " & Trim(aResult.Join("; "))
>    Else
>      cInfo[("Status")] = "Up to date"
>    Endif
> 
> Hope you find it worthwhile and include it in the base code sometime.
> 
> b
> 

Why do you need that? Normally, each modified file has a green circle 
checked on its name, so you know there is something to commit.

-- 
Benoît Minisini


More information about the User mailing list