Skip to content

Commit 4890df5

Browse files
committed
style: autoindent
1 parent f1dd416 commit 4890df5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

+GIT/tag.m

+7-7
Original file line numberDiff line numberDiff line change
@@ -36,36 +36,36 @@ function tag(tag,msg,folPath,commit)
3636
if isnumeric(msg) || isempty(msg)
3737
error('GIT:tag:msgNotChar','Input msg must be text');
3838
end
39-
39+
4040
currDir = pwd;
4141
c = onCleanup(@()cd(currDir));
4242
cd(folPath);
43-
43+
4444
if nargin > 3 && ~isempty(commit)
4545
if isnumeric(commit)
4646
error('GIT:tag:commitNotChar','Input commit must be text');
4747
end
4848
if ~ischar(commit)
4949
commit = char(commit);
5050
end
51-
51+
5252
try
5353
currCheckout = GIT.getCurrBranch();
5454
catch
5555
currCheckout = char.empty;
5656
end
57-
57+
5858
if isempty(currCheckout)
5959
% For instance if head is detached
6060
currCheckout = GIT.getCurrCommit();
6161
end
62-
62+
6363
% This will output to command window
6464
c2 = onCleanup(@()git(['checkout ' currCheckout]));
65-
65+
6666
% Checkout the commit that shall be tagged
6767
tmp = git(['checkout ' commit]); %#ok<NASGU>
68-
68+
6969
if ispc
7070
% Get time stamp of commit
7171
[~,b] = git(['show -s --format=%aD ' commit]);

gitbash.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function gitbash(folPath)
2626
if isempty(folPath)
2727
error('gitbash:gitNotFound','Git is not found.');
2828
end
29-
29+
3030
% What is the difference of these bash-windows?
3131
system(sprintf('start "" "%s" --login',fullfile(GIT.getBinFolder,'sh.exe')));
3232
% system(sprintf('start "" "%s" --login',fullfile(GIT.getBinFolder,'bash.exe')));

0 commit comments

Comments
 (0)