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 <whydo...@gmail.com>
---
blame.h | 29
builtin/blame.
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 <whydo...@gmail.com>
---
blame.h | 1 +
builtin/blame.c | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
blame.c | 1313 ++
blame.h | 11 +
builtin/blame.c | 1330 +--
3 files changed, 1330 insertions(+), 1324 deletions(-)
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 <whydo...@gmail.com>
---
builtin.h | 2 --
builtin/b
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
blame.c | 203 +++-
blame.h | 4 +-
builtin/blame.c | 197 --
3 files changed, 205 insertions(+), 199 deletions(-)
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 <whydo...@gmail.com>
---
blame.h
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 <whydo...@gmail.com>
---
blame.h | 3 +++
builtin/blame.c | 1 +
2 files changed, 4 insertions(+)
diff --git a/b
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 <whydo...@gmail.com>
---
blame.h | 10 ++
builtin/blame.c | 36
2
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 <whydo...@gmail.com>
---
builtin/blame.c | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/b
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
Makefile| 1 +
blame.c | 62 +
blame.h | 15 +++
builtin/blame.c | 120
4 files changed, 102 insertions(+), 96 del
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
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 @
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 <whydo...@gmail.com>
---
blame.h | 4
builtin/blame.c | 23 +++
2 files changed, 19 inse
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 <whydo...@gmail.com>
---
blame.h | 3 +++
builtin/blame.c | 20 +++-
2 files changed, 14 insertions(+), 9 del
into 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
Clean up blame code before moving it into libgit
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
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/b
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 <whydo...@gmail.com>
---
blame.h | 5 +
builtin/blame.c | 29 -
2 files changed, 17 inse
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 <whydo...@gmail.com>
---
builtin/blame.c | 49 +++--
1 file c
Allow the interface user to decide how to handle a progress update.
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
blame.h | 3 +++
builtin/blame.c | 24 ++--
2 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/blame.h b/blame.h
index e
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
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/b
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 <whydo...@gmail.com>
---
blame.h | 1 +
builtin/blame.c | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
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 <whydo...@gmail.com>
---
blame.h | 1 +
builtin/blame.c | 7 ---
2 files changed, 5 insertions(+), 3 deletions(-)
diff
Create function that completes setting up blame_scoreboard structure.
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
builtin/blame.c | 190 ++--
1 file changed, 101 insertions(+), 89 deletions(-)
diff --git a/builtin/blame.c b/b
Functions that will be publicly exposed should have names that better
reflect what they are a part of.
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
builtin/blame.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index 7
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 <whydo...@gmail.com>
---
blame.h | 143
builtin/blame.c
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
blame.c | 203 +++-
blame.h | 4 +-
builtin/blame.c | 197 --
3 files changed, 205 insertions(+), 199 deletions(-)
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 <whydo...@gmail.com>
---
builtin/blame.c | 114
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 <whydo...@gmail.com>
---
builtin/blame.c | 58 -
1 file changed, 29 insertions(
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 <whydo...@gmail.com>
---
builtin.h | 2 --
builtin/b
Clean up blame code before moving it into libgit
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
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/b
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 <whydo...@gmail.com>
---
builtin/blame.c | 58 --
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 <whydo...@gmail.com>
---
builtin/blame.c | 41 +++--
1 file changed, 23 insertions(
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 <whydo...@gmail.com>
---
builtin/blame.c | 34 +-
1 file changed, 17 insertions(+), 17 deletions(-)
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 <whydo...@gmail.com>
---
builtin/blame.c | 1 -
1 file changed, 1 deletio
to 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_scoreboard
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
Makefile| 1 +
blame.c | 62 +
blame.h | 15
builtin/blame.c | 72 -
4 files changed, 78 inse
Allow the interface user to decide how to handle a progress update.
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
builtin/blame.c | 27 +--
1 file changed, 17 insertions(+), 10 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index 1b53325..d05907b
Functions that will be publicly exposed should have names that better
reflect what they are a part of.
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
builtin/blame.c | 16
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
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 <whydo...@gmail.com>
---
builtin/blame.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/builtin/blame.c b/b
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 <whydo...@gmail.com>
---
builtin/blame.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/builtin/b
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 <whydo...@gmail.com>
---
builtin/blame.c | 4
1 file changed, 4 insertions(+)
diff --git a/builtin/blame.c b/b
Create function that populates a blame_entry and prepends it to a list.
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
builtin/blame.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
index fd41551..2
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 <whydo...@gmail.com>
---
builtin/blame.c | 23 ++-
1 file changed, 14 insertions(+), 9 deletions(-)
diff
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 <whydo...@gmail.com>
---
builtin/blame.c | 17 +
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/b
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
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/b
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
blame.c | 279 +++-
blame.h | 10 +-
builtin/blame.c | 276 ---
3 files changed, 281 insertions(+), 284 deletions(-)
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
blame.c | 1313 ++
blame.h | 11 +
builtin/blame.c | 1318 ---
3 files changed, 1324 insertions(+), 1318 deletions(-)
Functions that will be publicly exposed should have names that better
reflect what they are a part of.
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
builtin/blame.c | 14 +++---
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/builtin/blame.c b/builtin/blame.c
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 <whydo...@gmail.com>
---
builtin/blame.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/builtin/bla
Create function that initializes blame_scoreboard to default values.
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
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/b
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 <whydo...@gmail.com>
---
builtin/blame.c | 27 +++
1 file changed, 19 insertions(+), 8 deletions(-)
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 <whydo...@gmail.com>
---
builtin/blame.c | 49 +++--
1 file c
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
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
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
builtin/blame.c | 274
scoreboard.c| 273 +++
scoreboard.h| 2 +
3 files changed, 275 insertions(+), 274 deletions(-)
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
Makefile|1 +
builtin/blame.c | 1358 +--
scoreboard.c| 1296
scoreboard.h| 74 +++
4 files changed, 1372 inse
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
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
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
builtin.h | 2 --
builtin/blame.c| 28
builtin/cat-file.c | 1 +
diff.c | 23 +++
diff.h | 7 +++
5 files changed, 31 insertions(+), 30 del
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
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/b
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 <whydo...@gmail.com>
---
Makefile| 1 +
builtin/blame.c | 198 +--
commit-fake.c | 200
commit-fake.h | 9 +++
4 files changed, 211 inse
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
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 &q
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
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 OB
Signed-off-by: Jeff Smith <whydo...@gmail.com>
---
Makefile| 1 +
builtin/blame.c | 151 +---
origin.c| 62 +++
origin.h| 101 +
4 files changed, 165 inse
62 matches
Mail list logo