Skip to content

Commit

Permalink
Add online/offline filter option for repo list (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbtools authored Oct 5, 2023
1 parent f2b91db commit 98bbd9a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/development-guide/api/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,20 @@ Optional parameters correspond to the input fields of "New Offline" in abapGit.

### List ###

Get a list of all repository instances:
Get a list of repository instances:

```abap
" All repositories
DATA(lt_repos) = zcl_abapgit_repo_srv=>get_instance( )->list( ).
" Only offline repositories
lt_repos = zcl_abapgit_repo_srv=>get_instance( )->list( iv_offline = abap_true ).
" Only online repositories
lt_repos = zcl_abapgit_repo_srv=>get_instance( )->list( iv_offline = abap_false ).
" Only your favorite repositories (you can also use iv_offline as above)
lt_repos = zcl_abapgit_repo_srv=>get_instance( )->list_favorites( ).
```

Get a structured list of all repositories with properties and local settings:
Expand Down

0 comments on commit 98bbd9a

Please sign in to comment.