Skip to content

Commit 805d56e

Browse files
committed
More spelling fun
1 parent 7782209 commit 805d56e

14 files changed

+24
-21
lines changed

CustomDictionary.xml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<Word>ssh</Word>
66
<Word>git</Word>
77
<Word>gravatar</Word>
8+
<Word>dto</Word>
9+
<Word>rss</Word>
10+
<Word>submodule</Word>
811
</Recognized>
912
</Words>
1013
</Dictionary>

GitCommands/Config/ConfigFile.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public void Save()
118118
try
119119
{
120120
FileInfoExtensions
121-
.MakeFileTemporaryWriteable(_fileName,
121+
.MakeFileTemporaryWritable(_fileName,
122122
x =>
123123
File.WriteAllText(_fileName, configFileContent.ToString(), Settings.Encoding));
124124
}

GitCommands/FileInfoExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static class FileInfoExtensions
99
/// Remove all attributes that could cause the file to be read-only
1010
/// and restores them later
1111
/// </summary>
12-
public static void MakeFileTemporaryWriteable(string fileName, Action<string> writableAction)
12+
public static void MakeFileTemporaryWritable(string fileName, Action<string> writableAction)
1313
{
1414
var fileInfo = new FileInfo(fileName);
1515
if (!fileInfo.Exists)

GitCommands/Git/GitCommandsHelper.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ public static string BranchCmd(string branchName, string revision, bool checkout
845845
return "branch \"" + branchName.Trim() + "\" \"" + revision + "\"";
846846
}
847847

848-
public static void UnSetSsh()
848+
public static void UnsetSsh()
849849
{
850850
Environment.SetEnvironmentVariable("GIT_SSH", "", EnvironmentVariableTarget.Process);
851851
}
@@ -1252,9 +1252,9 @@ public static string RemoveRemote(string name)
12521252
return RunCmd(Settings.GitCommand, "remote rm \"" + name + "\"");
12531253
}
12541254

1255-
public static string RenameRemote(string name, string newname)
1255+
public static string RenameRemote(string name, string newName)
12561256
{
1257-
return RunCmd(Settings.GitCommand, "remote rename \"" + name + "\" \"" + newname + "\"");
1257+
return RunCmd(Settings.GitCommand, "remote rename \"" + name + "\" \"" + newName + "\"");
12581258
}
12591259

12601260
public static string AddRemote(string name, string path)
@@ -1309,7 +1309,7 @@ public static string GetSetting(string setting)
13091309
return configFile.GetValue(setting);
13101310
}
13111311

1312-
public static void UnSetSetting(string setting)
1312+
public static void UnsetSetting(string setting)
13131313
{
13141314
var configFile = GetLocalConfig();
13151315
configFile.RemoveSetting(setting);

GitCommands/Git/GitHead.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public string TrackingRemote
5454
set
5555
{
5656
if (String.IsNullOrEmpty(value))
57-
GitCommandHelpers.UnSetSetting(_remoteSettingName);
57+
GitCommandHelpers.UnsetSetting(_remoteSettingName);
5858
else
5959
{
6060
GitCommandHelpers.SetSetting(_remoteSettingName, value);
@@ -75,7 +75,7 @@ public string MergeWith
7575
set
7676
{
7777
if (String.IsNullOrEmpty(value))
78-
GitCommandHelpers.UnSetSetting(_mergeSettingName);
78+
GitCommandHelpers.UnsetSetting(_mergeSettingName);
7979
else
8080
GitCommandHelpers.SetSetting(_mergeSettingName, "refs/heads/" + value);
8181
}

GitCommands/System.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ public Tuple(T1 item1, T2 item2)
1414

1515
public static class Tuple
1616
{
17-
public static Tuple<T, S> Create<T, S>(T item1, S item2)
17+
public static Tuple<T1, T2> Create<T1, T2>(T1 item1, T2 item2)
1818
{
19-
return new Tuple<T, S>(item1, item2);
19+
return new Tuple<T1, T2>(item1, item2);
2020
}
2121
}
2222
}

GitCommands/patch/Patch.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class Patch
1111
public Patch()
1212
{
1313
Apply = true;
14-
BookMarks = new List<int>();
14+
Bookmarks = new List<int>();
1515
File = FileType.Text;
1616
}
1717

@@ -35,7 +35,7 @@ public enum FileType
3535
public int Rate { get; set; }
3636
public bool Apply { get; set; }
3737

38-
public List<int> BookMarks { get; set; }
38+
public List<int> Bookmarks { get; set; }
3939

4040
public PatchType Type { get; set; }
4141

GitCommands/patch/PatchManager.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ private void handleChangeFilePatchType(Patch patch, string[] patchLines)
163163
patch.Rate -= 20;
164164
}
165165

166-
patch.BookMarks.Add(lineNumber);
166+
patch.Bookmarks.Add(lineNumber);
167167

168168
if (fileLines.Count > lineNumber)
169169
fileLines.RemoveAt(lineNumber);
@@ -185,7 +185,7 @@ private void handleChangeFilePatchType(Patch patch, string[] patchLines)
185185
}
186186

187187
fileLines.Insert(lineNumber, insertLine);
188-
patch.BookMarks.Add(lineNumber);
188+
patch.Bookmarks.Add(lineNumber);
189189

190190
lineNumber++;
191191
}

GitUI/FormAddToGitIgnore.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private void AddToIngoreClick(object sender, EventArgs e)
2121
try
2222
{
2323
FileInfoExtensions
24-
.MakeFileTemporaryWriteable(Settings.WorkingDir + ".gitignore",
24+
.MakeFileTemporaryWritable(Settings.WorkingDir + ".gitignore",
2525
x =>
2626
{
2727
var gitIgnoreFile = new StringBuilder();

GitUI/FormCherryPickCommitSmall.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ namespace GitUI
66
{
77
public partial class FormCherryPickCommitSmall : GitExtensionsForm
88
{
9-
public FormCherryPickCommitSmall(GitRevision Revision)
9+
public FormCherryPickCommitSmall(GitRevision revision)
1010
{
11-
this.Revision = Revision;
11+
this.Revision = revision;
1212

1313
InitializeComponent(); Translate();
1414
}

GitUI/FormGitAttributes.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public FormGitAttributes()
3333
private void SaveClick(object sender, EventArgs e)
3434
{
3535
FileInfoExtensions
36-
.MakeFileTemporaryWriteable(
36+
.MakeFileTemporaryWritable(
3737
Settings.WorkingDir + ".gitattributes",
3838
x =>
3939
{

GitUI/FormGitIgnore.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private void SaveClick(object sender, EventArgs e)
3434
try
3535
{
3636
FileInfoExtensions
37-
.MakeFileTemporaryWriteable(
37+
.MakeFileTemporaryWritable(
3838
Settings.WorkingDir + ".gitignore",
3939
x =>
4040
{

GitUI/FormMailMap.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public FormMailMap()
3232
private void SaveClick(object sender, EventArgs e)
3333
{
3434
FileInfoExtensions
35-
.MakeFileTemporaryWriteable(
35+
.MakeFileTemporaryWritable(
3636
Settings.WorkingDir + ".mailmap",
3737
x =>
3838
{

GitUI/FormSettings.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ private bool Save()
456456
}
457457

458458
if (OpenSSH.Checked)
459-
GitCommandHelpers.UnSetSsh();
459+
GitCommandHelpers.UnsetSsh();
460460

461461
if (Putty.Checked)
462462
GitCommandHelpers.SetSsh(PlinkPath.Text);

0 commit comments

Comments
 (0)