https://github.com/git/git
Revision c54c7b376d73d2b3780475b18a6039721019aaba authored by Panagiotis Astithas on 11 June 2015, 14:37:25 UTC, committed by Junio C Hamano on 12 June 2015, 22:33:39 UTC
The output of "pmset -g batt" changed at some point from "Currently
drawing from 'AC Power'" to the slightly different "Now drawing from
'AC Power'". Starting the match from "drawing" makes the check work
in both old and new versions of OS X.

Signed-off-by: Panagiotis Astithas <pastith@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent fdf96a2
Raw File
Tip revision: c54c7b376d73d2b3780475b18a6039721019aaba authored by Panagiotis Astithas on 11 June 2015, 14:37:25 UTC
hooks/pre-auto-gc: adjust power checking for newer OS X
Tip revision: c54c7b3
sideband.h
#ifndef SIDEBAND_H
#define SIDEBAND_H

#define SIDEBAND_PROTOCOL_ERROR -2
#define SIDEBAND_REMOTE_ERROR -1

int recv_sideband(const char *me, int in_stream, int out);
ssize_t send_sideband(int fd, int band, const char *data, ssize_t sz, int packet_max);

#endif
back to top