Skip to content

Commit

Permalink
change "master" to "HEAD" in most places
Browse files Browse the repository at this point in the history
We don't need to refer to the branch directly as "HEAD" will alias to
whatever the latest one is.  We don't rename the actual branch in the
tree just yet, but we can clean up the docs now.

Change-Id: I2e1affd27549099435eeb17f5805178e2076dbfa
Reviewed-on: https://chromium-review.googlesource.com/c/apps/libapps/+/2454504
Tested-by: kokoro <[email protected]>
Reviewed-by: Joel Hockey <[email protected]>
  • Loading branch information
vapier committed Oct 7, 2020
1 parent ff63348 commit d5d04b5
Show file tree
Hide file tree
Showing 17 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions HACK.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ We follow the [Chromium style guide] (which in turn follows the
those, but it's most likely due to lack of tools automatically checking and
enforcing rather than being done on purpose.

[Chromium style guide]: https://chromium.googlesource.com/chromium/src/+/master/styleguide/web/web.md#JavaScript
[Chromium style guide]: https://chromium.googlesource.com/chromium/src/+/HEAD/styleguide/web/web.md#JavaScript
[Google style guide]: https://google.github.io/styleguide/jsguide.html

* Do not one-line if statements.
Expand Down Expand Up @@ -63,7 +63,7 @@ You can use [eslint](https://eslint.org/) to quickly check code, or
The [bin/lint](./libdot/bin/lint) helper script will run both for you.

The [.eslintrc.js](./.eslintrc.js) was based on the
[Chromium project](https://chromium.googlesource.com/chromium/src/+/master/.eslintrc.js).
[Chromium project](https://chromium.googlesource.com/chromium/src/+/HEAD/.eslintrc.js).

For build tools written in Python, you can use [bin/pylint](./libdot/bin/pylint)
to run [pylint](https://www.pylint.org/) with the right settings.
Expand Down Expand Up @@ -193,7 +193,7 @@ with...
$ git push origin HEAD:refs/for/master

This will push the current branch to Gerrit for review. Once the change has
passed review it will be cherry-picked onto the master branch of the official
passed review it will be cherry-picked onto the latest branch of the official
repository.

The output of this command should include a url to Gerrit web page for the
Expand Down Expand Up @@ -230,7 +230,7 @@ to take a look.

Some tips in case things are still failing:
* Make sure your commit is based on the latest tree state.
* Try clicking the "Rebase" button to get onto the latest master easily.
* Try clicking the "Rebase" button to get onto the latest tree easily.
* If kokoro's build flaked, post the message "kokoro rerun" to retry.

### Merging
Expand Down
2 changes: 1 addition & 1 deletion hterm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Feel free to let us know via the Contact section above! :)

# Mirrors & Packaging

* https://chromium.googlesource.com/apps/libapps/+/master/hterm: Main project site.
* https://chromium.googlesource.com/apps/libapps/+/HEAD/hterm: Main project site.
* https://github.com/chromium/hterm: Mirror of just the hterm/ subdir.
Updated from time to time by developers.
* https://github.com/libapps/hterm: Another mirror (in the libapps namespace).
Expand Down
2 changes: 1 addition & 1 deletion libdot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ to the right people.

# Mirrors & Packaging

* https://chromium.googlesource.com/apps/libapps/+/master/libdot: Main project site.
* https://chromium.googlesource.com/apps/libapps/+/HEAD/libdot: Main project site.
* https://github.com/libapps/libdot: Mirror of just the libdot/ subdir.
Updated from time to time by developers.
* https://www.npmjs.com/package/libdot: Packaging for npm installs.
Expand Down
2 changes: 1 addition & 1 deletion libdot/bin/node
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ NODE_MODULES_HASH = '2cd2dd365999ae139b6b0fb62a5a09e2a7fb5ab1c0926cf1968a1dec9b7

# In sync with Chromium's DEPS file because it's easier to use something that
# already exists than maintain our own. Look for 'node_linux64' here:
# https://chromium.googlesource.com/chromium/src/+/master/DEPS
# https://chromium.googlesource.com/chromium/src/+/HEAD/DEPS
NODE_VER = '12.14.1'

# Run `./node_sync_with_chromium` to update these hashes.
Expand Down
2 changes: 1 addition & 1 deletion libdot/bin/node_sync_with_chromium
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import libdot


# Where in Chromium's tree they maintain their hashes.
URI_BASE = ('https://chromium.googlesource.com/chromium/src/+/master/'
URI_BASE = ('https://chromium.googlesource.com/chromium/src/+/HEAD/'
'third_party/node')
URI_LIN = '/'.join((URI_BASE, 'linux', 'node-linux-x64.tar.gz.sha1'))
URI_MAC = '/'.join((URI_BASE, 'mac', 'node-darwin-x64.tar.gz.sha1'))
Expand Down
2 changes: 1 addition & 1 deletion libdot/third_party/intl-segmenter/intl-segmenter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Rough polyfill for Intl.Segmenter proposal
//
// https://github.com/tc39/proposal-intl-segmenter/blob/master/README.md
// https://github.com/tc39/proposal-intl-segmenter/blob/HEAD/README.md
//
// Caveats and Limitations
// * granularity: 'line': 'strictness' option is not supported (ignored)
Expand Down
2 changes: 1 addition & 1 deletion nassh/doc/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ You'll have to adjust your keyboard/muscle memory accordingly.
# Send a notification straight to hterm.
$ printf '\033P\033\033]777;notify;title;body\a\033\\'

Under [tmux](https://github.com/tmux/tmux/blob/master/tools/ansicode.txt),
Under [tmux](https://github.com/tmux/tmux/blob/HEAD/tools/ansicode.txt),
you can use a DCS sequence too, but using the `tmux` subcommand. Replace
the `...` part with what you want to send (and remember to escape the
escapes).
Expand Down
2 changes: 1 addition & 1 deletion nassh/doc/fonts.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ are being used with.
## Steps to create font

1. Download the font to match - e.g. `NotoSansMono-Regular.ttf` from
https://github.com/googlefonts/noto-fonts/blob/master/hinted/NotoSansMono.
https://github.com/googlefonts/noto-fonts/blob/HEAD/hinted/NotoSansMono.
2. Install FontForge - `sudo apt install fontforge`.
3. Get Nerd Fonts - `git clone https://github.com/ryanoasis/nerd-fonts.git`.
4. Apply Nerd Fonts patch -
Expand Down
2 changes: 1 addition & 1 deletion nassh/doc/hack.md
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ Here's a random list of documents which would be useful to people.
[NaCl]: https://developer.chrome.com/native-client
[Native Sockets]: https://crbug.com/909927
[OpenSSH]: https://www.openssh.com/
[OpenSSH SFTP Protocol]: https://github.com/openssh/openssh-portable/blob/master/PROTOCOL
[OpenSSH SFTP Protocol]: https://github.com/openssh/openssh-portable/blob/HEAD/PROTOCOL
[SFTPv3]: https://tools.ietf.org/html/draft-ietf-secsh-filexfer-02
[SFTPv6]: https://tools.ietf.org/html/draft-ietf-secsh-filexfer-13
[ssh_client]: ../../ssh_client/
Expand Down
2 changes: 1 addition & 1 deletion nassh/doc/processes.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Send the same announcement as before but to the the public

## Branches

We don't currently have any. We strive to keep the master branch stable.
We don't currently have any. We strive to keep the latest tree stable.
You should too!

## Translations
Expand Down
2 changes: 1 addition & 1 deletion nassh/js/nassh.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ nassh.reloadWindow = function() {
*
* The protocol should be one allowed by the specifications:
* https://html.spec.whatwg.org/multipage/webappapis.html#webappapis
* https://chromium.googlesource.com/chromium/src/+blame/master/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
* https://chromium.googlesource.com/chromium/src/+blame/HEAD/third_party/WebKit/Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp
* https://www.iana.org/assignments/uri-schemes/prov/sftp
*
* @param {string} proto The protocol name to register.
Expand Down
2 changes: 1 addition & 1 deletion nassh/third_party/google-smart-card/METADATA
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: "Client library for the Smart Card Connector App for Chrome OS"
third_party {
url {
type: HOMEPAGE
value: "https://github.com/GoogleChrome/chromeos_smart_card_connector/tree/master/example_js_standalone_smart_card_client_library"
value: "https://github.com/GoogleChrome/chromeos_smart_card_connector/tree/HEAD/example_js_standalone_smart_card_client_library"
}
url {
type: GIT
Expand Down
2 changes: 1 addition & 1 deletion ssh_client/wassh-libc-sup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ header if it exists, and then our additional features come after.


[Chromium C++ style guide]: https://chromium.googlesource.com/chromium/src/+/HEAD/styleguide/c++/c++.md
[WASI Core API]: https://github.com/CraneStation/wasmtime/blob/master/docs/WASI-api.md
[WASI Core API]: https://github.com/CraneStation/wasmtime/blob/HEAD/docs/WASI-api.md
[WASI Libc]: https://github.com/CraneStation/wasi-libc
[WASI SDK]: https://github.com/CraneStation/wasi-sdk
2 changes: 1 addition & 1 deletion ssh_client/wassh-libc-sup/docs/WASI-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ If the connection is successful, `ESUCCESS` will be returned.
Any other return value is an error.


[WASI Core API]: https://github.com/CraneStation/wasmtime/blob/master/docs/WASI-api.md
[WASI Core API]: https://github.com/CraneStation/wasmtime/blob/HEAD/docs/WASI-api.md
2 changes: 1 addition & 1 deletion terminal/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# chrome-untrusted://terminal

The chrome-untrusted://terminal System Web App is the default
[Chrome OS Linux (crostini)](https://chromium.googlesource.com/chromiumos/docs/+/master/containers_and_vms.md)
[Chrome OS Linux (crostini)](https://chromium.googlesource.com/chromiumos/docs/+/HEAD/containers_and_vms.md)
terminal.

# Contact
Expand Down
2 changes: 1 addition & 1 deletion wasi-js-bindings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ See the common [libapps HACK.md](../HACK.md) for details.
[emscripten]: https://emscripten.org/
[ES2020]: https://tc39.es/ecma262/
[WASI]: https://wasi.dev/
[WASI API]: https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md
[WASI API]: https://github.com/WebAssembly/WASI/blob/HEAD/phases/snapshot/docs.md
[WASI C library]: https://github.com/WebAssembly/wasi-libc
[WASI SDK]: https://github.com/WebAssembly/wasi-sdk
[WASM]: https://webassembly.org/
10 changes: 5 additions & 5 deletions wasi-js-bindings/js/dataview.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class WasiView extends DataView {
/**
* Read a dirent structure.
*
* https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#-dirent-struct
* https://github.com/WebAssembly/WASI/blob/HEAD/phases/snapshot/docs.md#-dirent-struct
*/
getDirent(byteOffset, littleEndian = false) {
/*
Expand All @@ -38,7 +38,7 @@ export class WasiView extends DataView {
/**
* Write a fdstat structure.
*
* https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#fdstat
* https://github.com/WebAssembly/WASI/blob/HEAD/phases/snapshot/docs.md#fdstat
*/
setFdstat(byteOffset, value, littleEndian = false) {
/*
Expand All @@ -60,7 +60,7 @@ export class WasiView extends DataView {
/**
* Write a filestat structure.
*
* https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#filestat
* https://github.com/WebAssembly/WASI/blob/HEAD/phases/snapshot/docs.md#filestat
*/
setFilestat(byteOffset, value, littleEndian = false) {
/*
Expand All @@ -81,8 +81,8 @@ export class WasiView extends DataView {
/**
* Read an iovec/ciovec structure.
*
* https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#-iovec-struct
* https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#-ciovec-struct
* https://github.com/WebAssembly/WASI/blob/HEAD/phases/snapshot/docs.md#-iovec-struct
* https://github.com/WebAssembly/WASI/blob/HEAD/phases/snapshot/docs.md#-ciovec-struct
*/
getIovec(byteOffset, littleEndian = false) {
/*
Expand Down

0 comments on commit d5d04b5

Please sign in to comment.