Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
364d800b
Commit
364d800b
authored
Oct 10, 2013
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move flag dependencies into docs and code.
parent
4fd847bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
include/git2/blame.h
+4
-4
src/blame.c
+8
-0
No files found.
include/git2/blame.h
View file @
364d800b
...
...
@@ -33,13 +33,13 @@ typedef enum {
* NOT IMPLEMENTED. */
GIT_BLAME_TRACK_COPIES_SAME_COMMIT_MOVES
=
(
1
<<
1
),
/** Track lines that have been copied from another file that exists in the
* same commit (like `git blame -CC`).
* same commit (like `git blame -CC`).
Implies SAME_FILE.
* NOT IMPLEMENTED. */
GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES
=
(
1
<<
1
|
1
<<
2
),
GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES
=
(
1
<<
2
),
/** Track lines that have been copied from another file that exists in *any*
* commit (like `git blame -CCC`).
* commit (like `git blame -CCC`).
Implies SAME_COMMIT_COPIES.
* NOT IMPLEMENTED. */
GIT_BLAME_TRACK_COPIES_ANY_COMMIT_COPIES
=
(
1
<<
1
|
1
<<
2
|
1
<<
3
),
GIT_BLAME_TRACK_COPIES_ANY_COMMIT_COPIES
=
(
1
<<
3
),
}
git_blame_flag_t
;
/**
...
...
src/blame.c
View file @
364d800b
...
...
@@ -184,6 +184,14 @@ static void normalize_options(
/* min_line 0 really means 1 */
if
(
!
out
->
min_line
)
out
->
min_line
=
1
;
/* max_line 0 really means N, but we don't know N yet */
/* Fix up option implications */
if
(
out
->
flags
&
GIT_BLAME_TRACK_COPIES_ANY_COMMIT_COPIES
)
out
->
flags
|=
GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES
;
if
(
out
->
flags
&
GIT_BLAME_TRACK_COPIES_SAME_COMMIT_COPIES
)
out
->
flags
|=
GIT_BLAME_TRACK_COPIES_SAME_COMMIT_MOVES
;
if
(
out
->
flags
&
GIT_BLAME_TRACK_COPIES_SAME_COMMIT_MOVES
)
out
->
flags
|=
GIT_BLAME_TRACK_COPIES_SAME_FILE
;
}
static
git_blame_hunk
*
split_hunk_in_vector
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment