git fetch origin stable9
git checkout stable9
git checkout -b backport-<pull request id>
git cherry-pick <commit id>
git push origin backport-<pull request id>
And then send a PR from backport- against stable9
| /** | |
| * Returns a test double for the specified class. | |
| * | |
| * @param string $originalClassName | |
| * | |
| * @return PHPUnit_Framework_MockObject_MockObject | |
| * | |
| * @throws PHPUnit_Framework_Exception | |
| * | |
| * @since Method available since Release 5.4.0 |
| <?php use OCP\IUser; | |
| function($u, IU $e, $d, IUser $i){}; |
| <?php | |
| use OCA; | |
| $a instanceof $b; |
| <?php | |
| /** | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2016 Joas Schilling | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| ### Keybase proof | |
| I hereby claim: | |
| * I am nickvergessen on github. | |
| * I am nickvergessen (https://keybase.io/nickvergessen) on keybase. | |
| * I have a public key whose fingerprint is 8A14 2308 4188 5D5C 5F46 C189 E166 FD89 76B3 BAC8 | |
| To claim this, I am signing this object: |
| https://github.com/nextcloud/files_automatedtagging/pull/6 + version in info.xml auf 1.0.0 ändern | |
| https://github.com/nextcloud/files_accesscontrol/pull/11 + version in info.xml auf 1.0.0 ändern | |
| https://github.com/nextcloud/serverinfo/pull/9 + version in info.xml auf 1.0.0 ändern | |
| https://github.com/nextcloud/server/pull/750 | |
| https://github.com/nextcloud/templateeditor/pull/4 |
git fetch origin stable9
git checkout stable9
git checkout -b backport-<pull request id>
git cherry-pick <commit id>
git push origin backport-<pull request id>
And then send a PR from backport- against stable9
| <?php | |
| /** | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2014 nickvergessen | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| $qb->select('id', 'uid', 'password', 'name', 'type', 'token', 'last_activity') | |
| ->from('authtoken') | |
| ->where($qb->expr()->eq('uid', $qb->createNamedParameter($user->getUID()))) | |
| ->setMaxResults(1000) | |
| $result = $qb->execute(); |
| #!/bin/bash | |
| # | |
| # Bash script to clean up stray branches that have no "upstream" branch | |
| # | |
| # USE AT OWN RISK | |
| # | |
| # gitclean [--no-interactive] | |
| # | |
| # - no-interactive: Automatically deletes the branch, without showing the diff | |
| # and asking for confirmation |