Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/data/primary-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const options = [
{ value: 'show', label: 'show/view' },
{ value: 'delete', label: 'delete/remove' },
{ value: 'compareCommits', label: 'compare two commits' },
{ value: 'compareFileInDiffBranch', label: 'compare file in two branches' },
{ value: 'configure', label: 'configure' },
{ value: 'clone', label: 'clone' },
{ value: 'ignore', label: 'ignore' },
Expand Down
16 changes: 16 additions & 0 deletions src/data/secondary-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,22 @@ export const secondaryOptions = {
}
],

compareFileInDiffBranch: [
{
value: 'terminal',
label: 'and output result in the terminal',
usage: 'git diff <master> -- fileNameWithPath',
nb: 'Your current checked out branch and master are the branches where you want to compare the same file. fileNameWithPath is the file with relative path.'
},
{
value: 'file',
label: 'and output result to a file',
usage: 'git diff <master> -- filenamewithpath > diff.txt',
nb:
'Your current checked out branch and master are the branches where you want to compare the same file. fileNameWithPath is the file with relative path. \n\ndiff.txt is the file you want to store the contents of the diff.'
}
],

clone: [
{
value: 'clone-repo-into-a-new-dir',
Expand Down