Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ingydotnet/git-subrepo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: stackriot/git-subrepo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 8 commits
  • 4 files changed
  • 5 contributors

Commits on Feb 7, 2017

  1. Fix typos

    Replace `subrepo` with `subtree` in `subtree` example
    chetan51 authored Feb 7, 2017
    Copy the full SHA
    0f0eae2 View commit details

Commits on May 21, 2018

  1. Travis CI not checking out a branch.

    The command in `.travis.yml` that is supposed to checkout the branch did not actually check out the branch.
    mupdt committed May 21, 2018
    Copy the full SHA
    b7fad46 View commit details

Commits on Feb 13, 2019

  1. doc: fix sentence repetition

    jersou committed Feb 13, 2019
    Copy the full SHA
    8d298da View commit details

Commits on May 24, 2019

  1. Fixed typo

    matteodg authored May 24, 2019
    Copy the full SHA
    177b563 View commit details

Commits on Dec 4, 2019

  1. Merge pull request #358 from mupdt/travis-checkout-branch-pls

    Fixes Travis CI build. It was not checking out a branch.
    admorgan authored Dec 4, 2019
    2
    Copy the full SHA
    0e44a65 View commit details
  2. Merge pull request #406 from matteodg/master

    Fixed typo
    admorgan authored Dec 4, 2019
    Copy the full SHA
    2872116 View commit details
  3. Merge pull request #252 from chetan51/patch-1

    Fix typos
    admorgan authored Dec 4, 2019
    Copy the full SHA
    ba30da1 View commit details
  4. Merge pull request #394 from jersou/master

    doc(pull): fix sentence repetition
    admorgan authored Dec 4, 2019
    Copy the full SHA
    181ca91 View commit details
Showing with 8 additions and 25 deletions.
  1. +2 −11 .travis.yml
  2. +2 −6 ReadMe.pod
  3. +0 −4 doc/git-subrepo.swim
  4. +4 −4 doc/intro-to-subrepo.swim
13 changes: 2 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -4,18 +4,9 @@ sudo: false
# Want 'bash' but 'c' works:
language: c

branches:
only:
- master
- /^release\//

script:
- git checkout $(
git branch --contains HEAD
| cut -c3-
| grep -E '^(master$|release)'
| head -1
)
# NOTE: we have to make sure we're on a branch (rather than on a detached HEAD) because tests rely on it.
- git checkout -b travis-ci-dummy-branch-name
- GIT_COMMITTER_NAME=Bob
GIT_COMMITTER_EMAIL=bob@blob.net
GIT_AUTHOR_NAME='Bob Blob'
8 changes: 2 additions & 6 deletions ReadMe.pod
Original file line number Diff line number Diff line change
@@ -218,10 +218,6 @@ When you pull you can assume a fast-forward strategy (default) or you can
specify a C<--rebase>, C<--merge> or C<--force> strategy. The latter is the
same as a C<clone --force> operation, using the current remote and branch.

When you pull you can assume a fast-forward strategy (default) or you can
specify a C<--rebase>, C<--merge> or C<--force> strategy. The latter is the
same as a C<clone --force> operation, using the current remote and branch.

Like the C<clone> command, C<pull> will squash all the changes (since the last
pull or clone) into one commit. This keeps your mainline history nice and
clean. You can easily see the subrepo's history with the C<git log> command:
@@ -354,8 +350,8 @@ Example to update the C<method> option for a subrepo:
Same as C<git help subrepo>. Will launch the manpage. For the shorter usage,
use C<git subrepo -h>.

Use C<< git subrepo help <command> to get help for a specific command. Use >>--
all` to get a summary of all commands.
Use C<< git subrepo help <command> >> to get help for a specific command. Use C<--
all> to get a summary of all commands.

The C<help> command accepts the C<--all> option.

4 changes: 0 additions & 4 deletions doc/git-subrepo.swim
Original file line number Diff line number Diff line change
@@ -177,10 +177,6 @@ the same arguments. Keep reading…
specify a `--rebase`, `--merge` or `--force` strategy. The latter is the same
as a `clone --force` operation, using the current remote and branch.

When you pull you can assume a fast-forward strategy (default) or you can
specify a `--rebase`, `--merge` or `--force` strategy. The latter is the same
as a `clone --force` operation, using the current remote and branch.

Like the `clone` command, `pull` will squash all the changes (since the last
pull or clone) into one commit. This keeps your mainline history nice and
clean. You can easily see the subrepo's history with the `git log` command:
8 changes: 4 additions & 4 deletions doc/intro-to-subrepo.swim
Original file line number Diff line number Diff line change
@@ -320,10 +320,10 @@ The resulting history is:

Compare that to *subtree*. This:

$ git subrepo add abc git@github.com:user/abc master
$ git subrepo add xyz git@github.com:user/def master
$ git subrepo pull abc git@github.com:user/abc master
$ git subrepo pull xyz git@github.com:user/def master
$ git subtree add abc git@github.com:user/abc master
$ git subtree add xyz git@github.com:user/def master
$ git subtree pull abc git@github.com:user/abc master
$ git subtree pull xyz git@github.com:user/def master

Produces this: