mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-05 15:41:34 +03:00
Merge branch '2863_mcdiff_merge_enhance'
* 2863_mcdiff_merge_enhance: fixed the doxygen documentation. Added doxygen comments Added diff_place_t enum. Added action_direction_t type Ticket #2863 (mcdiff bidirectional merge enhancement)
This commit is contained in:
commit
1a5dc8fe64
@ -353,6 +353,7 @@ static name_keymap_t command_names[] = {
|
|||||||
{"HunkPrev", CK_HunkPrev},
|
{"HunkPrev", CK_HunkPrev},
|
||||||
{"EditOther", CK_EditOther},
|
{"EditOther", CK_EditOther},
|
||||||
{"Merge", CK_Merge},
|
{"Merge", CK_Merge},
|
||||||
|
{"MergeOther", CK_MergeOther},
|
||||||
#endif /* USE_DIFF_VIEW */
|
#endif /* USE_DIFF_VIEW */
|
||||||
|
|
||||||
{NULL, CK_IgnoreKey}
|
{NULL, CK_IgnoreKey}
|
||||||
|
@ -328,7 +328,8 @@ enum
|
|||||||
CK_HunkNext,
|
CK_HunkNext,
|
||||||
CK_HunkPrev,
|
CK_HunkPrev,
|
||||||
CK_EditOther,
|
CK_EditOther,
|
||||||
CK_Merge
|
CK_Merge,
|
||||||
|
CK_MergeOther
|
||||||
};
|
};
|
||||||
|
|
||||||
/*** structures declarations (and typedefs of structures)*****************************************/
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
||||||
|
@ -432,6 +432,7 @@ Save = f2
|
|||||||
Edit = f4
|
Edit = f4
|
||||||
EditOther = f14
|
EditOther = f14
|
||||||
Merge = f5
|
Merge = f5
|
||||||
|
MergeOther = f15
|
||||||
Search = f7
|
Search = f7
|
||||||
SearchContinue = f17
|
SearchContinue = f17
|
||||||
Options = f9
|
Options = f9
|
||||||
|
@ -434,6 +434,7 @@ Save = f2
|
|||||||
Edit = f4
|
Edit = f4
|
||||||
EditOther = f14
|
EditOther = f14
|
||||||
Merge = f5
|
Merge = f5
|
||||||
|
MergeOther = f15
|
||||||
Search = f7
|
Search = f7
|
||||||
SearchContinue = f17
|
SearchContinue = f17
|
||||||
Options = f9
|
Options = f9
|
||||||
|
@ -23,6 +23,13 @@ typedef enum
|
|||||||
DATA_SRC_ORG = 2
|
DATA_SRC_ORG = 2
|
||||||
} DSRC;
|
} DSRC;
|
||||||
|
|
||||||
|
typedef enum
|
||||||
|
{
|
||||||
|
DIFF_LEFT = 0,
|
||||||
|
DIFF_RIGHT = 1,
|
||||||
|
DIFF_COUNT = 2
|
||||||
|
} diff_place_t;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
DIFF_NONE = 0,
|
DIFF_NONE = 0,
|
||||||
@ -54,7 +61,7 @@ typedef struct
|
|||||||
{
|
{
|
||||||
int off;
|
int off;
|
||||||
int len;
|
int len;
|
||||||
} BRACKET[2];
|
} BRACKET[DIFF_COUNT];
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
@ -80,12 +87,12 @@ typedef struct WDiff
|
|||||||
Widget widget;
|
Widget widget;
|
||||||
|
|
||||||
const char *args; /* Args passed to diff */
|
const char *args; /* Args passed to diff */
|
||||||
const char *file[2]; /* filenames */
|
const char *file[DIFF_COUNT]; /* filenames */
|
||||||
char *label[2];
|
char *label[DIFF_COUNT];
|
||||||
FBUF *f[2];
|
FBUF *f[DIFF_COUNT];
|
||||||
const char *backup_sufix;
|
const char *backup_sufix;
|
||||||
gboolean merged;
|
gboolean merged[DIFF_COUNT];
|
||||||
GArray *a[2];
|
GArray *a[DIFF_COUNT];
|
||||||
GPtrArray *hdiff;
|
GPtrArray *hdiff;
|
||||||
int ndiff; /* number of hunks */
|
int ndiff; /* number of hunks */
|
||||||
DSRC dsrc; /* data source: memory or temporary file */
|
DSRC dsrc; /* data source: memory or temporary file */
|
||||||
@ -105,7 +112,7 @@ typedef struct WDiff
|
|||||||
int display_numbers;
|
int display_numbers;
|
||||||
int show_cr;
|
int show_cr;
|
||||||
int tab_size;
|
int tab_size;
|
||||||
int ord;
|
diff_place_t ord;
|
||||||
int full;
|
int full;
|
||||||
gboolean utf8;
|
gboolean utf8;
|
||||||
/* converter for translation of text */
|
/* converter for translation of text */
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -525,6 +525,7 @@ static const global_keymap_ini_t default_diff_keymap[] = {
|
|||||||
{"Edit", "f4"},
|
{"Edit", "f4"},
|
||||||
{"EditOther", "f14"},
|
{"EditOther", "f14"},
|
||||||
{"Merge", "f5"},
|
{"Merge", "f5"},
|
||||||
|
{"MergeOther", "f15"},
|
||||||
{"Search", "f7"},
|
{"Search", "f7"},
|
||||||
{"SearchContinue", "f17"},
|
{"SearchContinue", "f17"},
|
||||||
{"Options", "f9"},
|
{"Options", "f9"},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user