Commit Graph

96 Commits

Author SHA1 Message Date
Domi Bigl
29e5e08d8d Dump in ZCL_ABAPGIT_BRANCH_OVERVIEW->DETERMINE_BRANCH #1909 (#1911)
* check 1st line contains LF

* remove add 2
2018-09-10 16:11:36 +02:00
Christian Günter
0fa50309a1 Staging smaller chunks of code like git add -p (#1842)
* Staging smaller chunks of code like git add -p

With this commit a new feature which works similar to git add -p
is added. We are now able to patch, which means that we can
commit on line basis. And are not restricted anymore to commit
only on file basis.

* move get_page_patch to stage page

* Refactor JS

* Refactor JS
2018-09-08 08:58:25 +02:00
Lars Hvam
c3db193efc
parse branch list, skip first pkt-line (#1898)
* add unit tests and fix some code inspector

* branch parsing: skip first pkt-line #1897
2018-09-08 08:04:09 +02:00
Domi Bigl
cd5ff75e85 Assertion failed blob data is initial #1857 2018-09-08 08:03:23 +02:00
Johannes Konings
d25bfaf725 fix some naming conventions
https://github.com/larshp/abapGit/issues/1132
2018-08-17 09:24:22 +02:00
Lars Hvam
65657a831b
Change git PUSH and PULL methods to functional (#1803)
* remove branch list from PULL

* change git push and pull to functional methods
2018-08-08 14:59:16 +02:00
larshp
3a78015f1e fix unit test for ZCL_ABAPGIT_GIT_PACK 2018-08-08 14:58:37 +02:00
larshp
e49b404b58 delete some unreferenced variables 2018-08-07 16:01:29 +02:00
larshp
578640f844 pretty print code 2018-08-07 16:01:18 +02:00
larshp
b634f067e2 fix syntax error 2018-08-07 07:27:45 +02:00
Michael Käsemann
8d51e6eb34 Optimized Git Object Handling (#1734)
* Optimized git object handling

- Introduced secondary indices for ZIF_ABAPGIT_DEFINITIONS=>TY_OBJECTS_TT to allow fast access to git objects by SHA1 and TYPE
- Added a new column INDEX to ZIF_ABAPGIT_DEFINITIONS=>TY_OBJECT to allow reconstruction of the correct sort order of git objects when after processing in ZCL_ABAPGIT_GIT_PACK
- Optimized git object accesses in ZCL_ABAPGIT_GIT_PACK, ZCL_ABAPGIT_GIT_PORCELAIN and ZCL_ABAPGIT_MERGE by using the newly introduced indices

* Removed excess fields

Removed excess fields from secondary index definitions of ´ty_objects_tt´, since they are not required.
2018-08-07 07:20:52 +02:00
Lars Hvam
18573089e2
Refactor staging + git + online repo (#1769)
* change merge and staging

always push to the top of the currently selected branch

* remove branch and sha1 from stage object #365

* REPO not longer part of GIT_PORCELAIN

SET_OBJECTS moved to private

* and remove fields from constructor
2018-08-06 12:55:13 +02:00
larshp
703b1022f5 separate repo from PULL 2018-08-05 12:17:34 +02:00
larshp
28adb2f790 separate repo from DELETE_TAG 2018-08-05 12:17:34 +02:00
larshp
748a32f57c separate repo from DELETE_BRANCH 2018-08-05 12:17:34 +02:00
larshp
71b7f9d788 separate repo from CREATE_TAG 2018-08-05 12:17:34 +02:00
larshp
d431f2d9d0 separate repo from CREATE_BRANCH 2018-08-05 12:17:34 +02:00
larshp
de76c32fd3 refactor git length encoding #1741
refactor git length encoding #1741

can now handle larger numbers than 30mb, uses interation and less code
2018-08-05 08:08:09 +02:00
Frederik Hudák
adacc174bd Removed endmethod and endclass comments - folder git 2018-08-03 14:49:52 +02:00
Michael Käsemann
3331a73b86 Optimized Git Type Determination
- Optimized the type determination logic in ZCL_ABAPGIT_GIT_PACK=>GET_TYPE by removing the string conversion and processing the relevant bits directly
2018-08-01 13:11:22 +02:00
Lars Hvam
67c76df109
Delete unreferenced types (#1705)
* remove ty_adler32

* remove tt_file_diff
2018-07-28 07:26:14 +02:00
Christian Guenter
bb82f2c8bd Refresh online repo: call BRANCH_LIST just once
Before this commit is applied BRANCH_LIST is called twice while
refreshing an online repo. This leads to two identical HTTP calls.
After this commit is applied BRANCH_LIST is only called once and
therefore only one HTTP request is sent.
2018-07-25 06:43:21 +02:00
Christian Günter
7ac8dc15b6 Remove local SHA1 from online repository #1485, #1509 (#1666)
* Remove local SHA1 from online repository

In this commit we remove the local SHA1 and all its references from
ZCL_ABAPGIT_REPO_ONLINE. SHA1 is also removed from repo persistency.
SHA1 insn't needed anymore. All where-used places were either migrated to
remote_SHA1 or removed.

* reintroduce logic after push
2018-07-22 10:11:09 +02:00
Christian Guenter
6afa45c5ed fix checkout annotated tags 2018-06-07 21:05:11 +02:00
Christian Guenter
319abf5b7b redesign create tag page 2018-06-06 14:20:22 +02:00
Christian Guenter
2c80628de3 implement annotated tags 2018-05-26 22:16:43 +02:00
larshp
b6241b3472 error message, #1363 2018-05-10 07:30:09 +00:00
Lars Hvam
2067910d0a
issue 1232, better error message (#1290) 2018-04-03 16:20:57 +02:00
Lars Hvam
7152b4281a
Refactoring (#1279)
* URL: rename and add validation method

plus validate url in NEW_ONLINE

* optimize select

* move write protection check

* start refactoring gui away from deserializati/pull

* mvoe ZCL_ABAPGIT_SERVICES_ABAPGIT to UI

* delete ZCL_ABAPGIT_SERVICES_BKG

moved to GUI page

* move ZCL_ABAPGIT_SERVICES_GIT to UI

* move ZCL_ABAPGIT_SERVICES_REPO to UI

* fix indentation

* overwrite popup refactored to UI
2018-03-29 14:29:03 +02:00
Lars Hvam
f17985b27e
Add option for "Only local objects", issue 1260 (#1268)
* refactor write protect and ignore subpackages

to local settings structure, this makes it a lot easier to exetend, plus adds structure

* delete method GET_MASTER_LANGUAGE

* add local settings to repo settings page

* add setting for only local objects #1260
2018-03-26 12:23:01 +02:00
Lars Hvam
256a3cd2de
fix for AWS CodeCommit (#1266)
* fix for AWS CodeCommit

* and also fix push
2018-03-25 08:28:51 +02:00
larshp
98c86a2447 minor changes
remove unused variables and method
2018-03-22 14:09:19 +01:00
Fabian Lupa
462c293695 Remove remaing usages of exception text variable 2018-03-17 13:25:09 +01:00
Lars Hvam
6578b39959
ZCL_ABAPGIT_GIT_PACK=>DECODE_TREE performance (#1218)
* refactor tests

* this is around twice as fast

+minor cleanups in class

* add test for off by 1
2018-02-24 10:03:05 +01:00
Lars Hvam
6d603deeb1
git: optimize type_and_length (#1208)
* add unit tests

* optimize type_and_length

this is around 10 times faster
2018-02-17 12:41:20 +01:00
Lars Hvam
68d0571516
More classes to global (#1209)
* lcl_background to global

* lcl_branch_overview to global

* lcl_services_git to global

* lcl_services_repo and lcl_services_db to global

* lcl_services_abapgit to global

* lcl_gui_chunk_lib to global

* lcl_gui_view_tutorial to global

* lif_auth to global

* lcl_auth and lcl_gui_view_repo to global

* lcl_view_repo

* lcl_gui_page_syntax to global

* 2 pages to global

* refactor router, less dynamic references

* background pages to global

* branch overview to global

* settings page to global

* repo settings page to global

* explore page to global

* diff page to global

* debug info to global

* main page to global

* refactor router, no dynamic references

* db pages to global

* router to global

* gui to global

* clean up includes

* move type definnition to interface

to avoid syntax error after abapmerge

* move types to interface

* move types to interface

* rename tyep

* move type

* move types

* move type
2018-02-17 12:40:54 +01:00
Lars Hvam
18ea5d637c
lcl_repo (#1205)
* lcl_repo and more to global

* cleanup includes

* fix indentation
2018-02-15 15:10:13 +01:00
Lars Hvam
3722c26019
lcl_http to global (#1199)
* lcl_http to global

* remove dependency lcl_git_transport -> repo

remove dependency lcl_git_transport -> lcl_repo_online

* lcl_git_transport to global

* indentation + cleanup includes
2018-02-11 14:08:45 +01:00
Lars Hvam
e9ffa8e642
To global (#1192)
More classes to global
2018-02-11 10:07:05 +01:00
larshp
56ff8c0b25 only show encoding progress for each 200 obj 2018-01-21 12:58:28 +00:00
larshp
ad6b99ec95 also return at decode 2018-01-21 07:52:39 +00:00
larshp
a9607f90b2 git pack: add adler32 table as optional input
git pack: add adler32 table as optional input #1165
2018-01-21 07:37:11 +00:00
larshp
a736957f58 refactor progress indicator #1149 2018-01-19 16:25:47 +00:00
Christian Günter
23c909ddaa lcl_tag to global zcl_abapgit_tag 2018-01-15 20:29:06 +01:00
Lars Hvam
97b5a3d143
code inspector fixes (#1131)
* code inspector fixes

* more
2018-01-13 10:49:47 +01:00
Lars Hvam
2ffec7c9f7
lcl_git to global (#1118)
* lcl_git to global

* reduce line length

* fix indentation
2018-01-11 17:50:02 +01:00