Skip to content

Commit 1ffc853

Browse files
committed
Renaming mess => message
1 parent 75a9981 commit 1ffc853

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

css/explaingit.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ text.id-label {
215215
font-size: 10px;
216216
}
217217

218-
text.mess-label {
218+
text.message-label {
219219
text-anchor: middle;
220220
font-family: Courier New;
221221
fill: #666;

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ <h2>Specific Examples</h2>
547547
name: 'Zen',
548548
height: '100%',
549549
commitData: [
550-
{id: 'e137e9b', tags: ['master'], mess: 'first commit'}
550+
{id: 'e137e9b', tags: ['master'], message: 'first commit'}
551551
],
552552
initialMessage:
553553
'Have fun.'

js/controlbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ define(['d3'], function () {
149149

150150
switch (arg) {
151151
case '-m':
152-
var mess = args.join(" ");
153-
this.historyView.commit({},mess);
152+
var message = args.join(" ");
153+
this.historyView.commit({},message);
154154
break;
155155
default:
156156
this.historyView.commit();

js/historyview.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ define(['d3'], function () {
579579

580580
_renderIdLabels: function () {
581581
this._renderText('id-label', function (d) { return d.id + '..'; }, 14);
582-
this._renderText('mess-label', function (d) { return d.mess; }, 24);
582+
this._renderText('message-label', function (d) { return d.message; }, 24);
583583
},
584584

585585
_renderText: function(className, getText, delta) {
@@ -807,13 +807,13 @@ define(['d3'], function () {
807807
return inTree;
808808
},
809809

810-
commit: function (commit, mess) {
810+
commit: function (commit, message) {
811811
commit = commit || {};
812812

813813
!commit.id && (commit.id = HistoryView.generateId());
814814
!commit.tags && (commit.tags = []);
815815

816-
commit.mess = mess;
816+
commit.message = message;
817817
if (!commit.parent) {
818818
if (!this.currentBranch) {
819819
throw new Error('Not a good idea to make commits while in a detached HEAD state.');
@@ -986,7 +986,7 @@ define(['d3'], function () {
986986
currentCommit = this.getCommit('HEAD'),
987987
isCommonAncestor,
988988
rebaseTreeLoc,
989-
rebaseMess,
989+
rebaseMessage,
990990
toRebase = [], rebasedCommit,
991991
remainingHusk;
992992

@@ -1017,12 +1017,12 @@ define(['d3'], function () {
10171017

10181018
for (var i = 0; i < toRebase.length; i++) {
10191019
rebasedCommit = toRebase[i];
1020-
rebaseMess = rebasedCommit.mess;
1020+
rebaseMessage = rebasedCommit.message;
10211021

10221022
remainingHusk = {
10231023
id: rebasedCommit.id,
10241024
parent: rebasedCommit.parent,
1025-
mess: rebasedCommit.mess,
1025+
message: rebasedCommit.message,
10261026
tags: []
10271027
};
10281028

@@ -1038,7 +1038,7 @@ define(['d3'], function () {
10381038
rebasedCommit.parent = rebaseTreeLoc;
10391039
rebaseTreeLoc = HistoryView.generateId()
10401040
rebasedCommit.id = rebaseTreeLoc;
1041-
rebasedCommit.mess = rebaseMess;
1041+
rebasedCommit.message = rebaseMessage;
10421042
rebasedCommit.tags.length = 0;
10431043
rebasedCommit.rebased = true;
10441044
}

0 commit comments

Comments
 (0)