mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
ide: Repo sync now shows 'cd' in console before git commands
git-svn-id: svn://ultimatepp.org/upp/trunk@15564 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
c5bab37f6c
commit
a71b7dfa69
5 changed files with 20 additions and 24 deletions
|
|
@ -39,7 +39,7 @@ int UrepoConsole::System(const char *cmd)
|
|||
return -1;
|
||||
String out;
|
||||
canceled = false;
|
||||
cancel.Show(withcancel);
|
||||
cancel.Show();
|
||||
while(p.IsRunning() && IsOpen()) {
|
||||
String h = p.Get();
|
||||
out.Cat(h);
|
||||
|
|
@ -82,6 +82,7 @@ int UrepoConsole::Git(const char *dir, const char *command)
|
|||
{
|
||||
String h = GetCurrentDirectory();
|
||||
SetCurrentDirectory(dir);
|
||||
list.Add(AttrText(String("cd ") + dir).SetFont(font().Bold().Italic()).Ink(SLtBlue()));
|
||||
int code = CheckSystem(String() << "git " << command);
|
||||
SetCurrentDirectory(h);
|
||||
return code;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue