Functions that will be publicly exposed should have names that better
reflect what they are a part of.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index 7c493d2..129ef28 100644
The xdl_opts flags are used in parts of blame that are being moved to
libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index
Signed-off-by: Jeff Smith
---
blame.c | 16
blame.h | 2 ++
builtin/blame.c | 14 --
3 files changed, 18 insertions(+), 14 deletions(-)
diff --git a/blame.c b/blame.c
index f6c9cb7..00404b9 100644
--- a/blame.c
+++ b/blame.c
@@ -1845,3 +1845,19
Signed-off-by: Jeff Smith
---
blame.c | 279 +++-
blame.h | 10 +-
builtin/blame.c | 276 ---
3 files changed, 281 insertions(+), 284 deletions(-)
diff --git a/blame.c b
Signed-off-by: Jeff Smith
---
blame.c | 1313 ++
blame.h | 11 +
builtin/blame.c | 1318 ---
3 files changed, 1324 insertions(+), 1318 deletions(-)
diff --git a/blame.c b
Create function that initializes blame_scoreboard to default values.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 11 ---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index e343520..f839571 100644
--- a/builtin/blame.c
+++ b/builtin
Allow the interface user to decide how to handle a failed sanity check,
whether that be to output with the current state or to do nothing.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 27 +++
1 file changed, 19 insertions(+), 8 deletions(-)
diff --git a/builtin
Either prepare_initial or prepare_final is used to determine which
commit is marked as 'final'. Call the underlying methods directly to
make this more clear.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 49 +++--
1 file changed, 23
Signed-off-by: Jeff Smith
---
Makefile| 1 +
blame.c | 62 +
blame.h | 15
builtin/blame.c | 72 -
4 files changed, 78 insertions(+), 72 deletions
Allow the interface user to decide how to handle a progress update.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 27 +--
1 file changed, 17 insertions(+), 10 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index 1b53325..d05907b 100644
--- a/builtin
The origin, entry, and scoreboard structures are core to the blame
interface and need to be exposed for blame functionality.
Signed-off-by: Jeff Smith
---
blame.h | 143
builtin/blame.c | 134
Signed-off-by: Jeff Smith
---
blame.c | 203 +++-
blame.h | 4 +-
builtin/blame.c | 197 --
3 files changed, 205 insertions(+), 199 deletions(-)
diff --git a/blame.c b
Create function that completes setting up blame_scoreboard structure.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 190 ++--
1 file changed, 101 insertions(+), 89 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index f839571
Functions that will be publicly exposed should have names that better
reflect what they are a part of.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index 7854770..7c493d2 100644
--- a
The argument from --contents is used in parts of blame that are being
moved to libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 4
1 file changed, 4 insertions(+)
diff --git a/builtin/blame.c b/builtin/blame.c
index 643f847
Functions that will be publicly exposed should have names that better
reflect what they are a part of.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index 129ef28..5082543
The show_root flag is used in parts of blame that are being moved to
libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index
The no_whole_file_rename flag is used in parts of blame that are being
moved to libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/builtin/blame.c b/builtin/blame.c
Create function that populates a blame_entry and prepends it to a list.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index fd41551..29771b7 100644
--- a/builtin
The reverse flag is used in parts of blame that are being moved to
libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 23 ++-
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/builtin/blame.c b/builtin
The new method's interface is marginally cleaner than blame_sort, and
will avoid the need to expose the compare_blame_final method.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/builtin/blame.c b/bu
Clean up blame code before moving it into libgit
Signed-off-by: Jeff Smith
---
builtin/blame.c | 25 ++---
1 file changed, 10 insertions(+), 15 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index fbd757e..3529f01 100644
--- a/builtin/blame.c
+++ b/builtin
Statistic counters are used in parts of blame that are being moved to
libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 34 +-
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/builtin
With commit 21666f1 ("convert object type handling from a string to a
number", 2007-02-26), there was no longer a need for blame.c to include
blob.h but it was not removed.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/builtin/blame.c
split out and group 'mechanical' changes
Jeff Smith (29):
blame: remove unneeded dependency on blob.h
blame: move textconv_object with related functions
blame: remove unused parameters
blame: rename origin structure to blame_origin
blame: rename scoreboard structure to blame_
Copy and move score thresholds are used in parts of blame that are being
moved to libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 41 +++--
1 file changed, 23 insertions(+), 18 deletions(-)
diff
The scoreboard structure is core to the blame interface. Since
scoreboard will become more exposed, rename it to blame_scoreboard to
clarify what it is a part of.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 58 -
1 file changed, 29
The origin structure is core to the blame interface. Since origin will
become more exposed, rename it to blame_origin to clarify what it is a
part of.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 114
1 file changed, 57 insertions
Functions related to blame_origin that will be publicly exposed should
have names that better reflect what they are a part of.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 58 -
1 file changed, 29 insertions(+), 29 deletions(-)
diff
textconv_object is used in places other than blame.c and should be moved
to a more appropriate location. Other textconv related functions are
located in diff.c so that seems as good a place as any.
Signed-off-by: Jeff Smith
---
builtin.h | 2 --
builtin/blame.c| 28
Signed-off-by: Jeff Smith
---
blame.c | 16
blame.h | 2 ++
builtin/blame.c | 11 +--
3 files changed, 19 insertions(+), 10 deletions(-)
diff --git a/blame.c b/blame.c
index f6c9cb7..00404b9 100644
--- a/blame.c
+++ b/blame.c
@@ -1845,3 +1845,19 @@ void
The no_whole_file_rename flag is used in parts of blame that are being
moved to libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
blame.h | 1 +
builtin/blame.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/blame.h b
Either prepare_initial or prepare_final is used to determine which
commit is marked as 'final'. Call the underlying methods directly to
make this more clear.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 49 +++--
1 file changed, 23
Allow the interface user to decide how to handle a progress update.
Signed-off-by: Jeff Smith
---
blame.h | 3 +++
builtin/blame.c | 24 ++--
2 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/blame.h b/blame.h
index e85db06..a0bd91b 100644
--- a
The new method's interface is marginally cleaner than blame_sort, and
will avoid the need to expose the compare_blame_final method.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/builtin/blame.c b/bu
Signed-off-by: Jeff Smith
---
Makefile| 1 +
blame.c | 62 +
blame.h | 15 +++
builtin/blame.c | 120
4 files changed, 102 insertions(+), 96 deletions(-)
create mode 100644
Signed-off-by: Jeff Smith
---
blame.c | 7 +++
blame.h | 2 ++
builtin/blame.c | 4 +---
3 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/blame.c b/blame.c
index 798e61b..17ebf64 100644
--- a/blame.c
+++ b/blame.c
@@ -1574,3 +1574,10 @@ void assign_blame(struct
Allow the interface user to decide how to handle a failed sanity check,
whether that be to output with the current state or to do nothing.
Signed-off-by: Jeff Smith
---
blame.h | 4
builtin/blame.c | 23 +++
2 files changed, 19 insertions(+), 8 deletions
Signed-off-by: Jeff Smith
---
blame.c | 203 +++-
blame.h | 4 +-
builtin/blame.c | 197 --
3 files changed, 205 insertions(+), 199 deletions(-)
diff --git a/blame.c b
The origin and blame_entry structures are core to the blame interface
and reference each other. Since origin will be more exposed, rename it
to blame_origin to clarify what it is a part of.
Signed-off-by: Jeff Smith
---
blame.h | 86 ++
builtin/blame.c | 185
The argument from --contents is used in parts of blame that are being
moved to libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
blame.h | 3 +++
builtin/blame.c | 1 +
2 files changed, 4 insertions(+)
diff --git a/blame.h b/blame.h
index
Copy and move score thresholds are used in parts of blame that are being
moved to libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
blame.h | 10 ++
builtin/blame.c | 36
2 files changed, 26
The xdl_opts flags are used in parts of blame that are being moved to
libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
blame.h | 1 +
builtin/blame.c | 7 ---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/blame.h b/blame.h
The scoreboard structure is core to the blame interface. Since
scoreboard will be more exposed, rename it to blame_scoreboard to
clarify what it is a part of.
Signed-off-by: Jeff Smith
---
blame.h | 29
builtin/blame.c | 83
The show_root flag is used in parts of blame that are being moved to
libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
blame.h | 1 +
builtin/blame.c | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/blame.h b/blame.h
Signed-off-by: Jeff Smith
---
blame.c | 1313 ++
blame.h | 11 +
builtin/blame.c | 1330 +--
3 files changed, 1330 insertions(+), 1324 deletions(-)
diff --git a/blame.c b
textconv_object is used in places other than blame.c and should be moved
to a more appropriate location. Other textconv related functions are
located in diff.c so that seems as good a place as any.
Signed-off-by: Jeff Smith
---
builtin.h | 2 --
builtin/blame.c| 28
With commit 21666f1 ("convert object type handling from a string to a
number", 2007-02-26), there was no longer a need for blame.c to include
blob.h but it was not removed.
Signed-off-by: Jeff Smith
---
builtin/blame.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/builtin/blame.c
Statistic counters are used in parts of blame that are being moved to
libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
blame.h | 5 +
builtin/blame.c | 29 -
2 files changed, 17 insertions(+), 17 deletions
The reverse flag is used in parts of blame that are being moved to
libgit, and should be accessible via the scoreboard structure.
Signed-off-by: Jeff Smith
---
blame.h | 3 +++
builtin/blame.c | 20 +++-
2 files changed, 14 insertions(+), 9 deletions(-)
diff --git a
more atomic pieces
Fleshed out commit message bodies
Made public structure and method names more clearly blame-related
Jeff Smith (22):
blame: remove unneeded dependency on blob.h
blame: move textconv_object with related functions
blame: remove unused parameters
blame: move origin and
Signed-off-by: Jeff Smith
---
blame.c | 272 +++-
blame.h | 5 +-
builtin/blame.c | 259 +
3 files changed, 271 insertions(+), 265 deletions(-)
diff --git a/blame.c b
Clean up blame code before moving it into libgit
Signed-off-by: Jeff Smith
---
builtin/blame.c | 25 ++---
1 file changed, 10 insertions(+), 15 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index c419981..e30b3ef 100644
--- a/builtin/blame.c
+++ b/builtin
Signed-off-by: Jeff Smith
---
builtin.h | 2 --
builtin/blame.c| 28
builtin/cat-file.c | 1 +
diff.c | 23 +++
diff.h | 7 +++
5 files changed, 31 insertions(+), 30 deletions(-)
diff --git a/builtin.h
Signed-off-by: Jeff Smith
---
Makefile| 1 +
builtin/blame.c | 198 +--
commit-fake.c | 200
commit-fake.h | 9 +++
4 files changed, 211 insertions(+), 197 deletions
pieces from blame.c into
libgit. The functionality left in blame.c mostly relates to terminal
presentation.
Jeff Smith (10):
Remove unneeded dependency on blob.h from blame
Move textconv_object to be with other textconv methods
Add some missing definitions to header files
Remove unused
Signed-off-by: Jeff Smith
---
builtin/blame.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index 07506a3..42c56eb 100644
--- a/builtin/blame.c
+++ b/builtin/blame.c
@@ -8,7 +8,6 @@
#include "cache.h"
#include "refs.h"
#include &
Signed-off-by: Jeff Smith
---
builtin/blame.c | 149 +++-
1 file changed, 93 insertions(+), 56 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index c873cc2..dc7600c 100644
--- a/builtin/blame.c
+++ b/builtin/blame.c
@@ -62,11
Signed-off-by: Jeff Smith
---
builtin/blame.c | 274
scoreboard.c| 273 +++
scoreboard.h| 2 +
3 files changed, 275 insertions(+), 274 deletions(-)
diff --git a/builtin/blame.c
Signed-off-by: Jeff Smith
---
Makefile|1 +
builtin/blame.c | 1358 +--
scoreboard.c| 1296
scoreboard.h| 74 +++
4 files changed, 1372 insertions(+), 1357 deletions
Signed-off-by: Jeff Smith
---
builtin/blame.c | 264 +---
scoreboard.h| 1 +
2 files changed, 140 insertions(+), 125 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index 0af99e3..3bde5a6 100644
--- a/builtin/blame.c
+++ b
Signed-off-by: Jeff Smith
---
builtin/blame.c | 14 ++
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index c419981..cc46f56 100644
--- a/builtin/blame.c
+++ b/builtin/blame.c
@@ -449,9 +449,7 @@ static struct origin *make_origin
Signed-off-by: Jeff Smith
---
object.h| 2 ++
pathspec.h | 4
refs.h | 3 +++
tree-walk.h | 2 ++
4 files changed, 11 insertions(+)
diff --git a/object.h b/object.h
index f52957d..9737582 100644
--- a/object.h
+++ b/object.h
@@ -1,6 +1,8 @@
#ifndef OBJECT_H
#define OBJECT_H
Signed-off-by: Jeff Smith
---
Makefile| 1 +
builtin/blame.c | 151 +---
origin.c| 62 +++
origin.h| 101 +
4 files changed, 165 insertions(+), 150 deletions
64 matches
Mail list logo