Commit Graph

462 Commits

Author SHA1 Message Date
Sebastian Sdorra
151049657a Merged in bugfix/postpone_writing_to_stream (pull request #322)
Postpone writing to output stream in diff command
2019-10-01 12:52:25 +00:00
Sebastian Sdorra
273b5fd2c6 Merged in feature/cat_with_lfs (pull request #324)
cat with lfs
2019-10-01 12:12:04 +00:00
Sebastian Sdorra
6605cc2b6b remove unused imports 2019-10-01 13:58:33 +02:00
Rene Pfeuffer
3d27938e80 Postpone writing to output stream in diff command
Without this, the gzip filter would write the first bytes to the
response output stream, before the diff command is triggered and
potential exceptions may be thrown. When exceptions are thrown too late,
filters like the GZip filter may already have sent bytes to the response
stream. Afterwards this cannot be undone and the response created by an
exception mapper may not be valid anymore.
2019-09-25 12:15:30 +02:00
René Pfeuffer
5b4d1d6003 Get correct sizes for lfs files 2019-09-25 08:31:42 +02:00
René Pfeuffer
7e5e45b488 Detect and load lfs files 2019-09-24 20:50:54 +02:00
René Pfeuffer
1c922d637e Ignore '\ No newline at end of file' in diff 2019-09-23 17:25:01 +02:00
Rene Pfeuffer
87a4fa8b74 Remove leading slashes when changing files in git 2019-09-11 10:51:26 +02:00
Rene Pfeuffer
0ab8f52e7f Check whether directory already exists as a file 2019-09-10 10:50:56 +02:00
Rene Pfeuffer
5e4496e166 Implement git modify command 2019-09-09 17:14:29 +02:00
Rene Pfeuffer
5e2d63183c Merge with base branch 2019-09-04 13:35:40 +02:00
Rene Pfeuffer
5f037762c7 Verify that branch is a branch 2019-09-04 13:24:59 +02:00
Rene Pfeuffer
80b48b1dc4 Add requested revision to browse result 2019-09-04 13:05:22 +02:00
Rene Pfeuffer
c37ed20303 Implement delete for git 2019-09-04 10:31:01 +02:00
Rene Pfeuffer
379c58d3a9 Add parameter to check current revision to prevent conflicts 2019-09-03 10:36:23 +02:00
Rene Pfeuffer
695457e949 Make branch optional in modify command
Due to the fact that the default branch is configured in HEAD, it will
be checked out by default by the clone in GitModifyCommand. Therefore
we won't have to do anything to "select" the default branch if no other
branch is specified.
2019-09-03 08:32:07 +02:00
Rene Pfeuffer
f769248164 Let git implement MODIFY 2019-08-30 09:29:58 +02:00
Rene Pfeuffer
8ccd99975f Use revision from commit as result 2019-08-29 17:59:34 +02:00
Rene Pfeuffer
8a7b50a079 Throw exception when no changes were made 2019-08-29 17:57:29 +02:00
Rene Pfeuffer
f02dec5cc6 Add flag to optionally overwrite files with create 2019-08-29 17:22:50 +02:00
Rene Pfeuffer
de7647ba55 Extract common code 2019-08-29 10:31:25 +02:00
René Pfeuffer
aae9ba6a59 Commit and push changes 2019-08-28 16:23:33 +02:00
René Pfeuffer
406620bd9d First steps to implement create in modify command 2019-08-28 15:07:14 +02:00
René Pfeuffer
956d9a42c8 Fix injection 2019-08-28 06:32:15 +02:00
René Pfeuffer
4f21756d00 Extract class to provide temporary work directories 2019-08-27 16:56:44 +02:00
Sebastian Sdorra
2557a2acff merge with 2.0.0-m3 2019-08-19 09:53:43 +02:00
Rene Pfeuffer
aa1452ab85 Let git implement DIFF_RESULT command 2019-08-16 15:56:15 +02:00
Eduard Heimbuch
b99199e349 merge 2.0.0-m3 2019-08-15 10:51:36 +02:00
Sebastian Sdorra
00fa943e51 fix SonarQube issues 2019-07-31 13:24:31 +02:00
Sebastian Sdorra
e3787fd764 simplify Differ api and use the new api in GitDiffCommand 2019-07-30 08:06:10 +02:00
Sebastian Sdorra
07068880bb implemented parsing of git diff hunks 2019-07-29 16:42:49 +02:00
Sebastian Sdorra
01379caa08 implement first diff details 2019-07-29 12:54:58 +02:00
Eduard Heimbuch
27d4d9ba3a Merged in bugfix/repoid_svn_migration (pull request #280)
Bugfix set repository in svn configuration after migration
2019-07-05 06:28:10 +00:00
Eduard Heimbuch
97c10a867c merged 2019-07-05 08:03:55 +02:00
Rene Pfeuffer
431902ff91 Rename classes 2019-07-03 13:32:59 +02:00
René Pfeuffer
c35363b79f Store repository id in git config for each repository
This is needed after migration from v1 to v2 and is done in
GitV1UpdateStep.java. Therefore we hat to make the 'forAllPaths' method
in PathBasedRepositoryLocationResolver available in the interface of
RepositoryLocationResolver.
2019-07-03 07:48:06 +02:00
René Pfeuffer
7db3350439 Migrate git LFS blob directory 2019-07-01 14:17:32 +02:00
Sebastian Sdorra
b7af4fa902 shutdown jgit workqueue, when context is destroyed 2019-06-19 11:41:36 +02:00
Sebastian Sdorra
ece1a2b34a update jgit to v5.4.0.201906121030-r-scm1 2019-06-19 11:40:36 +02:00
René Pfeuffer
c39c14bbd1 Remove no longer needed LfsStoreRemoveListener
With v2 the LFS store resides inside the repository directory that is
purged completely on deletion. Therefore an explicit deletion of the
LFS folder is no longer necessary.
2019-06-06 13:31:40 +02:00
René Pfeuffer
c44d38cc61 Introduce abstraction for repository location 2019-05-09 14:08:18 +02:00
Sebastian Sdorra
dd39c6b535 fixed missing checkout call for GitBranchCommand 2019-04-17 13:51:13 +02:00
René Pfeuffer
fbdbe4956f Fix permissions for repository git configuration 2019-04-11 12:09:06 +02:00
René Pfeuffer
f8a59a4d0f Use new IntegrateChangesFromWorkdirException in merge command 2019-03-29 16:13:29 +01:00
René Pfeuffer
2e93a9efec Implement peer review comments 2019-03-29 15:39:44 +01:00
René Pfeuffer
89de300137 Add minimal error handling 2019-03-29 13:39:55 +01:00
René Pfeuffer
9833bfd34d Merge with 2.0.0-m3 2019-03-29 11:54:17 +01:00
René Pfeuffer
00b27b5488 Close repositories after usage 2019-03-29 11:47:44 +01:00
René Pfeuffer
2a19313df5 Remove unknown val 2019-03-29 11:06:10 +01:00
René Pfeuffer
ee219f2d59 Remove unnecessary interface 2019-03-29 10:36:55 +01:00