Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • xmonader/gambas
  • gambas/gambas
  • gbWilly/gambas
  • dtardon/gambas
  • Davidmue/gambas
  • mmu_man/gambas
  • jguardon/gambas
  • tstueker/gambas
  • timsoft/gambas
  • yann64/gambas
  • Matthew-Collins/gambas
  • microhobby/gambas
  • ercoupeflyer/gambas
  • pebauer68/gambas
  • ptmarstech/gambas
  • christhal/gambas
  • tboege/gambas
  • christopherwoo/gambas
  • yusronarif/gambas
  • gen.braga/gambas
  • MelvinG24/gambas
  • Krischel/gambas
  • liang-wei/gambas
  • brucebruen/gambas
  • LibreDWG/gambas
  • SkyN9ne/gambas
  • zxMarce/gambas
  • lordheavy/gambas
  • ddabrahams76/gambas
  • GianluigiOr/gambas
  • rfc1394/gambas
  • wekan/gambas
  • bsteers4/gambas
  • fweimer-rh/gambas
  • CDCDCDCDCDCD/gambas
  • geekdu42/gambas
  • belmotek/gambas
  • jfrank1500/gambas
  • mfischerq/gambas
  • shiny0110/gambas
  • kk667788/gambas
  • bandali/gambas
  • 64sys/gambas
  • justlostintime/gambas
  • aleasto/gambas
  • bgermann/gambas
  • linusky/gambas
47 results
Show changes
Commits on Source (2)
  • Benoît Minisini's avatar
    [DEVELOPMENT ENVIRONMENT] · 0d506a34
    Benoît Minisini authored
    * BUG: Version control: Correctly trim the identity name and e-mail.
    * NEW: Version control: Display a big label when there is no change to commit.
    * NEW: Version control: Correctly update 'Change' tab when there is no change to commit.
    0d506a34
  • Benoît Minisini's avatar
    Version control: Correctly save last commit log when committing. · d468e709
    Benoît Minisini authored
    [DEVELOPMENT ENVIRONMENT]
    * BUG: Version control: Correctly save last commit log when committing.
    * NEW: Version control: Better label when there is nothing to commit.
    d468e709
This diff is collapsed.
...@@ -18,13 +18,12 @@ End ...@@ -18,13 +18,12 @@ End
Public Sub Form_Open() Public Sub Form_Open()
ReadConfig ReadConfig
'Reload
End End
Public Sub Reload() Public Sub Reload(Optional bForce As Boolean)
If Project.TimeStamp = $iTimeStamp Then Return If Project.TimeStamp = $iTimeStamp And If Not bForce Then Return
$iTimeStamp = Project.TimeStamp $iTimeStamp = Project.TimeStamp
...@@ -62,9 +61,15 @@ Public Sub UpdateWorkspaceButtons(bShowSpace As Boolean) ...@@ -62,9 +61,15 @@ Public Sub UpdateWorkspaceButtons(bShowSpace As Boolean)
End End
Public Sub btnWorkspace_Click() Private Sub SaveLastCommitLog()
Project.Config["/FProjectVersion/LastCommit"] = RTrim(GetChanges()) Project.Config["/FProjectVersion/LastCommit"] = RTrim(GetChanges())
End
Public Sub btnWorkspace_Click()
SaveLastCommitLog()
edtHistory.StopFillWithHistory() edtHistory.StopFillWithHistory()
FMain.CloseCurrentWorkspace FMain.CloseCurrentWorkspace
...@@ -73,8 +78,7 @@ End ...@@ -73,8 +78,7 @@ End
Public Sub OnProjectChange() Public Sub OnProjectChange()
If Project.Dir <> Project.PreviousDir Then If Project.Dir <> Project.PreviousDir Then
$iTimeStamp = -1 Reload(True)
Reload()
trmVersionControl.Clear() trmVersionControl.Clear()
Endif Endif
...@@ -111,6 +115,7 @@ Public Sub tabVersion_Click() ...@@ -111,6 +115,7 @@ Public Sub tabVersion_Click()
InitEditor(edtJournal) InitEditor(edtJournal)
InitEditor(edtDiff) InitEditor(edtDiff)
panNothing.Background = edtJournal.Background
edtJournal.Text = RTrim(Project.Config["/FProjectVersion/LastCommit"]) & "\n\n" & VersionControl.GetDefaultJournal() edtJournal.Text = RTrim(Project.Config["/FProjectVersion/LastCommit"]) & "\n\n" & VersionControl.GetDefaultJournal()
edtJournal.Goto(0, 0) edtJournal.Goto(0, 0)
...@@ -277,16 +282,20 @@ Private Sub LoadDiff() ...@@ -277,16 +282,20 @@ Private Sub LoadDiff()
edtDiff.Text = sDiff edtDiff.Text = sDiff
panDiff.Show panDiff.Show
panNothing.Hide panNothing.Hide
btnRevert.Show
edtDiff.Show
Else Else
edtDiff.Text = "-" edtDiff.Text = "-"
panDiff.Hide panDiff.Hide
panNothing.Show panNothing.Show
btnRevert.Hide
edtDiff.Hide
Endif Endif
edtJournal.Enabled = panDiff.Visible edtJournal.ReadOnly = Not panDiff.Visible
edtJournal.ShowCurrent = panDiff.Visible
edtJournal.ShowCursor = panDiff.Visible
'tabVersion[0].Enabled = edtDiff.Visible
Dec Application.Busy Dec Application.Busy
Endif Endif
...@@ -333,6 +342,8 @@ Private Sub DoCommit() ...@@ -333,6 +342,8 @@ Private Sub DoCommit()
Dim bCommit As Boolean Dim bCommit As Boolean
Dim bPush As Boolean Dim bPush As Boolean
SaveLastCommitLog()
If Last = btnCommit Or If Last = btnCommitPush Then bCommit = True If Last = btnCommit Or If Last = btnCommitPush Then bCommit = True
If Last = btnCommitPush Or If Last = btnPush Then bPush = True If Last = btnCommitPush Or If Last = btnPush Then bPush = True
...@@ -357,7 +368,9 @@ Private Sub DoCommit() ...@@ -357,7 +368,9 @@ Private Sub DoCommit()
VersionControl.Commit(sChange, Not bPush) VersionControl.Commit(sChange, Not bPush)
tabVersion.Index = 1 tabVersion.Index = 1
Endif Endif
Reload(True)
End End
...@@ -408,3 +421,9 @@ Public Sub btnRevert_Click() ...@@ -408,3 +421,9 @@ Public Sub btnRevert_Click()
VersionControl.Revert() VersionControl.Revert()
End End
Public Sub edtDiff_GotFocus()
edtJournal.SetFocus()
End
...@@ -103,34 +103,14 @@ ...@@ -103,34 +103,14 @@
Expand = True Expand = True
Arrangement = Arrange.Vertical Arrangement = Arrange.Vertical
{ Panel1 VBox { Panel1 VBox
MoveScaled(6,3,113,30) MoveScaled(6,2,113,39)
{ tlbCommit ToolBar { tlbCommit ToolBar
MoveScaled(1,1,118,4) MoveScaled(8,1,83,4)
Key = "commit" Key = "commit"
ReadOnly = True ReadOnly = True
Separator = True Separator = True
{ panNothing Panel
MoveScaled(1,0,35,4)
Visible = False
Arrangement = Arrange.Horizontal
AutoResize = True
{ PictureBox1 PictureBox
MoveScaled(0,0,4,4)
Picture = Picture.Load("icon:/small/info")
Alignment = Align.Center
}
{ lblNothingToCommit Label
MoveScaled(4,0,28,4)
Font = Font["Bold"]
AutoResize = True
Text = ("There is nothing to commit.")
}
{ Panel2 Panel
MoveScaled(33,0,1,4)
}
}
{ btnCommit ToolButton { btnCommit ToolButton
MoveScaled(39,0,13,4) MoveScaled(1,0,13,4)
Action = ".vc-commit" Action = ".vc-commit"
AutoResize = True AutoResize = True
Text = ("Commit") Text = ("Commit")
...@@ -138,7 +118,7 @@ ...@@ -138,7 +118,7 @@
} }
{ btnCommitPush ToolButton btnCommit { btnCommitPush ToolButton btnCommit
Name = "btnCommitPush" Name = "btnCommitPush"
MoveScaled(53,0,21,4) MoveScaled(15,0,21,4)
Action = ".vc-commit-push" Action = ".vc-commit-push"
AutoResize = True AutoResize = True
Text = ("Commit and push") & "..." Text = ("Commit and push") & "..."
...@@ -146,22 +126,35 @@ ...@@ -146,22 +126,35 @@
} }
{ btnPush ToolButton btnCommit { btnPush ToolButton btnCommit
Name = "btnPush" Name = "btnPush"
MoveScaled(76,0,11,4) MoveScaled(38,0,11,4)
Action = ".vc-push" Action = ".vc-push"
AutoResize = True AutoResize = True
Text = ("Push") & "..." Text = ("Push") & "..."
Picture = Picture["icon:/small/upload"] Picture = Picture["icon:/small/upload"]
} }
{ btnRevert ToolButton { btnRevert ToolButton
MoveScaled(87,0,18,4) MoveScaled(49,0,18,4)
Action = ".vc-revert" Action = ".vc-revert"
AutoResize = True AutoResize = True
Text = Shortcut(("Undo changes"), "U") Text = Shortcut(("Undo changes"), "U")
Picture = Picture["icon:/small/undo"] Picture = Picture["icon:/small/undo"]
} }
} }
{ panNothing Panel
MoveScaled(3,12,89,6)
Background = Color.TextBackground
Arrangement = Arrange.Fill
Margin = True
{ Label1 Label
MoveScaled(1,1,79,4)
Font = Font["+4,Bold"]
Foreground = Color.LightForeground
Expand = True
Text = ("There is nothing to commit.")
}
}
{ edtJournal TextEditor { edtJournal TextEditor
MoveScaled(3,9,38,14) MoveScaled(3,22,38,14)
Expand = True Expand = True
Border = False Border = False
} }
......
...@@ -561,8 +561,8 @@ End ...@@ -561,8 +561,8 @@ End
Public Sub GetIdentity(ByRef sName As String, ByRef sEmail As String) Public Sub GetIdentity(ByRef sName As String, ByRef sEmail As String)
Try sName = RunShell("git config user.name") Try sName = Trim(RunShell("git config user.name"))
Try sEmail = RunShell("git config user.email") Try sEmail = Trim(RunShell("git config user.email"))
End End
......