This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1803 ngx_int_t | |
1804 ngx_http_set_etag(ngx_http_request_t *r) | |
1805 { | |
1806 ngx_table_elt_t *etag; | |
1807 ngx_http_core_loc_conf_t *clcf; | |
1808 | |
1809 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); | |
1810 | |
1811 if (!clcf->etag) { | |
1812 return NGX_OK; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Warn before pushing to protected branches | |
# Make script executable with chmod +x pre-push | |
# Bypass with git push --no-verify | |
BRANCH=`git rev-parse --abbrev-ref HEAD` | |
PROTECTED_BRANCHES="^(master|dev|release-*|patch-*)" | |
if [[ "$BRANCH" =~ $PROTECTED_BRANCHES ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function shallowEqual(objA, objB, compare, compareContext) { | |
var ret = compare ? compare.call(compareContext, objA, objB) : void 0; | |
if (ret !== void 0) { | |
return !!ret; | |
} | |
if (objA === objB) { | |
return true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db2e18d5501537ea90124b7073e4b4f5906de821 |