Skip to content

RFC Log history of a ref

Shawn Pearce git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 35 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Remove unnecessary local in get_ref_sha1.refs.c+1 -41 reply
1/5General ref log reading improvements.refs.c t/t1400-update-ref.sh+104 -140 replies
1/5Correct force_write bug in refs.crefs.c+1 -10 replies
1/5Reorganize/rename unpack_non_delta_entry to unpack_compressed_entry.sha1_file.c+28 -280 replies
1/5Move post-update hook to after all other activityreceive-pack.c+1 -20 replies
1/5Properly cleanup in http_cleanup so builtin-fetch does not segfaulthttp.c+5 -20 replies
1/5builtin-fetch: Don't segfault on "fetch +foo"remote.c+1 -20 replies
1/5Rename remote.uri to remote.url within remote handling internalsbuiltin-fetch.c builtin-push.c remote.c +2 more+26 -260 replies
1/5Fix memory leak in traverse_commit_listlist-objects.c+7 -00 replies
1/5fast-import: check return value from unpack_entry()fast-import.c+2 -00 replies
2/5Improve abstraction of ref lock/write.fetch.c refs.c refs.h+144 -1481 reply
2/5Added logs/ directory to repository layout.Documentation/repository-layout.txt+11 -00 replies
2/5Change order of -m option to update-ref.Documentation/git-update-ref.txt+1 -10 replies
2/5Reuse compression code in unpack_compressed_entry.sha1_file.c+4 -210 replies
2/5Don't run post-update hook unless a ref changedreceive-pack.c+4 -40 replies
2/5Don't bother passing ref log details to walker in builtin-fetchtransport.c+1 -10 replies
2/5Don't attempt to merge non-existant remotes in t5515t/t5515-fetch-merge-logic.sh+1 -20 replies
2/5Refactor struct transport_ops inlined into struct transportbuiltin-fetch.c transport.c transport.h+30 -513 replies
2/5git-fetch: Always fetch tags if the object they reference existsbuiltin-fetch.c+1 -10 replies
2/5Include annotated tags in fast-import crash reportsfast-import.c+13 -00 replies
3/5Convert update-ref to use ref_lock API.Documentation/git-update-ref.txt update-ref.c+38 -671 reply
3/5Force writing ref if it doesn't exist.refs.c refs.h+4 -10 replies
3/5Include ref log detail in commit, reset, etc.git-am.sh git-applypatch.sh git-branch.sh +2 more+6 -50 replies
3/5Cleanup unpack_entry_gently and friends to use type_name array.sha1_file.c+6 -280 replies
3/5Refactor run_update_hook to be more usefulreceive-pack.c+44 -190 replies
3/5Cleanup duplicate initialization code in transport_gettransport.c+10 -170 replies
3/5Correct handling of branch.$name.merge in builtin-fetchbuiltin-fetch.c remote.c remote.h +8 more+51 -231 reply
3/5Always obtain fetch-pack arguments from struct fetch_pack_argsbuiltin-fetch-pack.c fetch-pack.h transport.c+55 -740 replies
3/5run-command: Support sending stderr to /dev/nullrun-command.c run-command.h+5 -20 replies
3/5Include the fast-import marks table in crash reportsfast-import.c+10 -00 replies
4/5Log ref updates to logs/refs/<ref>Documentation/config.txt Documentation/git-update-ref.txt cache.h +5 more+210 -00 replies
4/5Log ref updates made by fetch.fetch.c fetch.h http-fetch.c +3 more+27 -42 replies
4/5Create/delete branch ref logs.Documentation/git-branch.txt git-branch.sh+19 -30 replies
4/5Cleanup unpack_object_header to use only offsets.sha1_file.c+3 -70 replies
4/5Refactor handling of error_string in receive-packreceive-pack.c t/t5400-send-pack.sh+35 -310 replies
4/5Add transport.h to LIB_H as transport.o is in LIB_OBJSMakefile+1 -10 replies
4/5Avoid printing unnecessary warnings during fetch and pushbuiltin-fetch.c transport.c+17 -120 replies
4/5Ensure builtin-fetch honors {fetch,transfer}.unpackLimitbuiltin-fetch-pack.c transport.c transport.h+13 -180 replies
4/5rev-list: Introduce --quiet to avoid /dev/null redirectsDocumentation/git-rev-list.txt builtin-rev-list.c+31 -40 replies
4/5Finish current packfile during fast-import crash handlerfast-import.c+7 -00 replies
5/5Support 'master@2 hours ago' syntaxDocumentation/git-rev-parse.txt refs.c refs.h +1 more+104 -176 replies
5/5Change 'master@noon' syntax to 'master@{noon}'.Documentation/git-rev-parse.txt sha1_name.c t/t1400-update-ref.sh+62 -310 replies
5/5Enable ref log creation in git checkout -b.Documentation/git-checkout.txt git-checkout.sh+21 -56 replies
5/5Convert unpack_entry_gently and friends to use offsets.sha1_file.c+15 -180 replies
5/5Teach receive-pack to run pre-receive/post-receive hooksDocumentation/git-receive-pack.txt receive-pack.c t/t5401-update-hooks.sh+191 -623 replies
5/5Remove unnecessary 'fetch' argument from transport_get APIbuiltin-fetch.c builtin-push.c transport.c +1 more+20 -111 reply
5/5Use 'unsigned:1' when we mean boolean optionsfetch-pack.h+6 -60 replies
5/5Fix memory leaks when disconnecting transport instancestransport.c+8 -00 replies
5/5git-fetch: avoid local fetching from alternate (again)builtin-fetch.c t/t5502-quickfetch.sh+100 -20 replies
5/5Update fast-import documentation to discuss crash reportsDocumentation/git-fast-import.txt+87 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [JGIT PATCH 0/5] Support receive.fsckobjects

This series adds support for receive.fsckobjects, but on the fetch side of the connection. Perhaps it should be transfer.fsckobjects or fetch.fsckobjects, but git.git doesn't support either of those right now.

I mainly need this series because I'm fetching out of untrusted bundles. The content of the bundle has to pass git-fsck for it to be considered safe.

The ObjectChecker class covers the same rules as git-fsck does, and is perhaps even stricter on some of the things git-fsck lets slide. I think git-fsck is too lenient in some areas, and I'd like to try and improve the rules more in git.git, but I don't have time for it right now.

Shawn O. Pearce (5):
Expose RawParseUtils.match to application callers Fix UnpackedObjectLoader.getBytes to return a copy Object validation tests for "jgit fsck"
Expose the critical receive configuration options to JGit Honor receive.fsckobjects during any fetch connection

 .../org/spearce/jgit/lib/ObjectCheckerTest.java    | 1294 ++++++++++++++++++++
 .../src/org/spearce/jgit/lib/ObjectChecker.java    |  352 ++++++
 .../src/org/spearce/jgit/lib/ObjectLoader.java     |    7 +-
 .../org/spearce/jgit/lib/PackedObjectLoader.java   |    7 -
 .../src/org/spearce/jgit/lib/RepositoryConfig.java |   10 +
 .../src/org/spearce/jgit/lib/TransferConfig.java   |   56 +
 .../org/spearce/jgit/lib/UnpackedObjectLoader.java |    4 -
 .../jgit/transport/BasePackFetchConnection.java    |    1 +
 .../src/org/spearce/jgit/transport/IndexPack.java  |   60 +-
 .../src/org/spearce/jgit/transport/Transport.java  |   24 +
 .../spearce/jgit/transport/TransportBundle.java    |   10 +-
 .../jgit/transport/WalkFetchConnection.java        |   26 +-
 .../src/org/spearce/jgit/util/RawParseUtils.java   |   23 +-
 13 files changed, 1842 insertions(+), 32 deletions(-)
 create mode 100644 org.spearce.jgit.test/tst/org/spearce/jgit/lib/ObjectCheckerTest.java
 create mode 100644 org.spearce.jgit/src/org/spearce/jgit/lib/ObjectChecker.java
 create mode 100644 org.spearce.jgit/src/org/spearce/jgit/lib/TransferConfig.java